my question here
I'm very new to Python and I created a simple number guessing game and for some reason when i enter a number that is 100 or higher it will say Higher. Why?
I'm very new to Python and I created a simple number guessing game and for some reason when i enter a number that is 100 or higher it will say Higher. Why?
VarNum = "0" while(VarNum != "27"): VarNum = input("Guess my number from 1-99: ") print("Your answer is:", VarNum) if (VarNum > "27"): print("Lower") elif (VarNum < "27"): print("Higher") elif (VarNum == "27"): print("Congratulations! You guessed my number!")