+ 1
Why it's showing error in last line?
import random winningNumber= random.randint(1,100) guess= 1 player= int(input("Choose Number Between 1 to 100 ")) gameOver= False while not gameOver : if player == winningNumber: print(f"You Win! You guessed this no. in {guess} time") gameOver = True else: if player < winningNumber: print("Try Bigger Number:") else: print("Try small number;") guess+= 1 player= int(input("try"))
3 Réponses
+ 1
Sololearn's IDE has that one shit problem. I suggest you to install (if you learn on Androids) a foreign one from google play store. Pydroid3 is good one.
0
tested it, It works fine
0
You need to input all the values at once in sololearn ,