+ 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 Respostas
+ 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