else invalid syntax error | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

else invalid syntax error

https://code.sololearn.com/c00871EH7p32/?ref=app How would I be able to fix this???

17th May 2019, 7:14 PM
Rawnlive
Rawnlive - avatar
2 Respuestas
+ 1
def main(): print("Guess a number between 1 and 100.") randomNumber = 42 found = False while not found: userGuess = int(input("Your guess: ")) if userGuess == randomNumber: print ("You got it!") found = True else: print("That's not it.")
17th May 2019, 8:06 PM
Diego
Diego - avatar
+ 1
Put proper intentation😊
17th May 2019, 8:12 PM
Kelvin Paul
Kelvin Paul - avatar