Skip to content

Instantly share code, notes, and snippets.

@PeterJatschka
Created September 2, 2016 07:27
Show Gist options
  • Save PeterJatschka/0d3f949e9be6bb35d68d866dc0a18aa1 to your computer and use it in GitHub Desktop.
Save PeterJatschka/0d3f949e9be6bb35d68d866dc0a18aa1 to your computer and use it in GitHub Desktop.
x = raw_input("Willst du ein Geheimnis wissen? ")
while True:
if x.lower()=="ja" or x.lower()=="j":
print "Am 1.1. ist Neujahr"
break
elif x.lower()=="nein" or x.lower()=="n":
print "Ok, dann eben nicht..."
break
else:
while x.lower()!="j" or x.lower()!="ja" or x.lower()!="n" or x.lower()!="nein":
x=raw_input("Versteh ich nicht!? Sag nochmal, Ja oder Nein: ")
if x.lower()=="j" or x.lower()=="ja" or x.lower()=="n" or x.lower()=="nein":
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment