+ 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"))

17th May 2020, 10:22 PM
Tarun Gautam
Tarun Gautam - avatar
3 odpowiedzi
+ 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.
17th May 2020, 10:31 PM
M Tamim
M Tamim - avatar
0
tested it, It works fine
17th May 2020, 10:27 PM
Justus
Justus - avatar
0
You need to input all the values at once in sololearn ,
17th May 2020, 10:28 PM
Abhay
Abhay - avatar