I am doing a school project and I have to program a little machine learning game. The rest of the code is working fine but on this (simplified) section below, I get a syntax error in the if-elif section
difficulty = int(input("Choose a game mode (1: Easy; 2:Hard):"))
if difficulty == 1:
print("Easy mode selected")
elif difficulty == 2:
print("Hard mode selected")
Any ideas on what I'm doing wrong here?
Aucun commentaire:
Enregistrer un commentaire