So I want to write it so IF 's' is NOT equal to 1, 2 or 3, then it prints error. Otherwise, if it IS equal to 1, 2, or 3, it goes on to print something else.
s = raw_input("Between 1-3: ") if s != 1, 2 or 3: print "ERROR" else: print "******"
Aucun commentaire:
Enregistrer un commentaire