Created
September 2, 2016 07:27
-
-
Save PeterJatschka/0d3f949e9be6bb35d68d866dc0a18aa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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