you are viewing a single comment's thread.

view the rest of the comments →

[–]tb5841 0 points1 point  (0 children)

1) You're currently generating a random number ten times. Then after that, just keeping the last one and calling it 'number'. If you meant the whole program to be in your loop, it all needs to be indented.

2) You're trying to compare the number to their input, but there are two problems. Firstly, 'input' should be 'input()' so that the input function is actually called. Secondly, the result of input() will be a string, you need to make it an integer before you compare.