lundi 22 décembre 2014

How do I keep repeating "if"s?

I want my if function to keep repeating on python when it falls onto else. How do I do that? I've added an example of my code.



if selection1 == "C":
print("Ok")
elif selection1 == "E":
print("Ok")
elif selection1 == "Q":
print("Ok...") quit()
else:
selection1 == print("The character you entered has not been recognised, please try again.")

Aucun commentaire:

Enregistrer un commentaire