https://repl.it/@TheFlooBearer/Python-Guessing-Game-Exercise Python File, if the URL didn't give that way. This is my code. I am trying to make a game that allows you to guess a number from 1 to 10. It doesn't seem to be working when I test it. If I print the [number] variable and then insert that variable into the guess, it seems to not detect that was the right value. I tend to make incredibly small errors, so, bear with me.
https://repl.it/@TheFlooBearer/Python-Guessing-Game-Exercise
Python File, if the URL didn't give that way.
This is my code. I am trying to make a game that allows you to guess a number from 1 to 10. It doesn't seem to be working when I test it. If I print the [number] variable and then insert that variable into the guess, it seems to not detect that was the right value. I tend to make incredibly small errors, so, bear with me.
input()
returns a string, but the number is an integer. Useint(guess1) == number
andint(guess1) != number and tries >= 1
instead.@niorg2606 Thank you so much! That makes sense