Skip to content

Instantly share code, notes, and snippets.

@samister2k
Created October 13, 2016 16:58
Show Gist options
  • Save samister2k/9291ceb34fb89ffa341c7b4df17ad651 to your computer and use it in GitHub Desktop.
Save samister2k/9291ceb34fb89ffa341c7b4df17ad651 to your computer and use it in GitHub Desktop.
print("welcome to my program to translate english to German")
print("these are your options")
print("hello")
print("goodbye")
print("my name is")
print("what is that")
print("ye")
print("good evening")
print("good night")
print("happy")
print("ok")
print("thank you")
while True:
choice=input("type english")
if choice=="hello":
print("Guten tag")
print("it is short for ich wünsche einen guten Tag! I wish you a good day!")
elif choice=="goodbye":
print("Auf Wiedersehen")
print("Auf Wiedersehen more literally translates as,when we see again, or until we see again, very close to the English informal see you later")
elif choice=="my name is ...":
print(" Ich heiße ...")
elif choice=="what is that":
print("was ist das")
elif choice=="Ye":
print("Ja")
print("example: david said my name and i said Ja")
elif choice=="good eveing":
print("Guten abend")
print("From Old High German āband, from Proto-Germanic *ēbanþs, possibly from Proto-Indo-European *(“after, behind”) → “last part of the day”; compare Low German Avend")
elif choice=="good night":
print("Guten nacht")
print("In early times, the day was held to begin at sunset, so Old English monanniht Monday night was the night before Monday, or what we would call Sunday night. The Greeks, by contrast, counted their days by mornings")
elif choice=="happy":
print("froh")
print("example: ich habe froh")
elif choice=="ok":
print("ok")
print("example: mr.murray said to sam hows ur day and sam said ok")
elif choice=="thank you":
print("danke")
print("From Middle English danke, first recorded circa 1310 (as verb; circa 1410 as noun), probably from North Germanic, related to Swedish dank")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment