+ 1
else invalid syntax error
https://code.sololearn.com/c00871EH7p32/?ref=app How would I be able to fix this???
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.")
+ 1
Put proper intentation😊