Skip to content

Instantly share code, notes, and snippets.

@samister2k
Created October 20, 2016 20:45
Show Gist options
  • Save samister2k/d63167c4329baa600db95e6e289e869f to your computer and use it in GitHub Desktop.
Save samister2k/d63167c4329baa600db95e6e289e869f to your computer and use it in GitHub Desktop.
print("welcome to my program to translate english to German")
print("these are your options")
possible_words = ["hello","goodbye", "my name is", "what is that", "ye", "good evening", "good night", "happy", "ok", "thank you", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
print(possible_words)
while True:
choice=input("type english")
if choice=="hello":
print("noun/verb")
print("Guten tag")
print("it is short for ich wünsche einen guten Tag! I wish you a good day!")
elif choice=="goodbye":
print("noun")
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("pronoun")
print("Ja")
print("example: david said my name and i said Ja")
elif choice=="good eveing":
print("interjection")
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("noun/interjection")
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("adjective")
print("froh")
print("example: ich habe froh")
elif choice=="ok":
print("adjective")
print("ok")
print("example: mr.murray said to sam hows ur day and sam said ok")
elif choice=="thank you":
print("adjective/noun")
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")
elif choice=="monday":
print("noun")
print("montag")
print("From Middle High German mōntac, māntac, from Old High German mānotag")
elif choice=="tuesday":
print("noun")
print("dienstag")
print("Thingsus is the attested Latin name of a Germanic God, who may or may not be the same as Tiw (Old High German Ziu, for whom compare Ziestag). Further particulars unsettled. Another theory is that it is the “Day of the Thing”. Dienstag is cognate with Dutch dinsdag")
elif choice=="wednesday":
print("noun")
print("mittwoch")
print("from Old High German mittawehha ‎(literally “middle of the week”)")
elif choice=="thursday":
print("noun")
print("donnerstag")
print("From Middle High German donerstac, from Old High German donarestag, thonarestag (11th c.), from late Proto-Germanic (“day of Thor”)")
elif choice=="friday":
print("noun")
print("freitag")
print("From Middle High German from Old High German frīatag (9th c.), from late Proto-Germanic *Frijjōz dagaz ‎(“day of Frigg”),")
elif choice=="saturday":
print("noun")
print("samstag")
print("From Middle High German sam(e)ztac, from Old High German sambaztag, from Gothic [script needed] ‎(*sambatō), from Late Greek Byzantine Greek σάμβατον ‎(sámbaton, “sabbath”) (compare Old French sambedi, Romansch somda).")
elif choice=="sunday":
print("noun")
print("sonnstag")
print("From Middle High German sunne(n)tac, sun(n)tac, from Old High German sunnūntag (9th c.), from late Proto-Germanic *sunnōniz dagaz ‎(“day of the sun”)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment