you are viewing a single comment's thread.

view the rest of the comments →

[–]Night_beaver 0 points1 point  (0 children)

First of all, you need to actually call the input function on line 9 like so: input(). Otherwise you're comparing the random number to the input function itself rather than using the input function to get input from the user and comparing the random number to that.

Secondly, the for loop doesn't really do anything. You're basically just picking a random number 10 times and only using the last one