Jan-10-2019, 03:23 AM
The input function returns either a string (3.0+) or a number (if you enter one in 2.7 or before). The range function returns either a range object (3.0+) or a list (2.7-). None of those comparisons work.
Are you trying to get a random number that the user then guesses? If so, look at the random module, either random.randrange or random.randint.
Are you trying to get a random number that the user then guesses? If so, look at the random module, either random.randrange or random.randint.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures