Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Eggy-Chat-Bot-/language.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
89 lines (71 sloc)
3.03 KB
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
import emoji | |
import requests | |
import flag | |
def language(): | |
while True: | |
LanguageChoice=input("1 for english:\n" | |
"2 für deutsch bitte deutsch eingeben:\n" | |
"3 dla języka polskiego proszę wprowadzić polski:\n") | |
if LanguageChoice == "1": | |
print("you have chosen english") | |
x1 = input("hi my name is eggy whats your name?:\n") | |
print("hello "+x1 +" nice to meet you!",) | |
while True: | |
MenuChoice = input("please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n") | |
if MenuChoice == "1": | |
"weather.py()" | |
return() | |
elif MenuChoice == "2": | |
"sports.py()" | |
elif MenuChoice == "3": | |
"tech.py()" | |
elif MenuChoice == "4": | |
"hotnews.py()" | |
elif MenuChoice == 5: | |
".py()" | |
else: | |
print("sorry i dont understnad please try again") | |
continue | |
elif LanguageChoice == "2": | |
print("du hast deutsch gewählt") | |
x1 = input("hi my name is eggy whats your name?:\n") | |
print("hello " + x1 + " nice to meet you!", ) | |
while True: | |
MenuChoice = input("please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n") | |
if MenuChoice == 1: | |
"weather.py()" | |
elif MenuChoice == 2: | |
"sports.py()" | |
elif MenuChoice == 3: | |
"tech.py()" | |
elif MenuChoice == 4: | |
"hotnews.py()" | |
elif MenuChoice == 5: | |
".py()" | |
else: | |
print("sorry i dont understnad please try again") | |
continue | |
elif LanguageChoice == "3": | |
print("wybrałeś polski") | |
x1 = input("hi my name is eggy whats your name?:\n") | |
print("hello " + x1 + " nice to meet you!", ) | |
while True: | |
MenuChoice = input( | |
"please input what type of news you would like to check today\n 1.wheather\n 2.sports\n 3.tech \n 4.HOT NEWS!:\n") | |
if MenuChoice == 1: | |
"weather.py()" | |
elif MenuChoice == 2: | |
"sports.py()" | |
elif MenuChoice == 3: | |
"tech.py()" | |
elif MenuChoice == 4: | |
"hotnews.py()" | |
elif MenuChoice == 5: | |
".py()" | |
else: | |
print("sorry i dont understnad please try again") | |
continue | |
else: | |
print("sorry No Language found please try again") | |
continue | |
print(language()) | |