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-/techNews.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (30 sloc)
1.18 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
# Case 1, Already Language selected is English. | |
# Customer has selected option C, Tech News in the Main Menu. | |
# tech news has two options. 1 Display latest news. 2 Tech Companies News. | |
def techNews(): | |
option3 = techNews | |
options = input("Please select 1 for Latest News") or ("2 for different Tech companies news") | |
if input == 1: | |
"latestNews.py" | |
return() | |
elif input == 2: | |
"TechCompaniesNews.py" | |
return() | |
def TechCompaniesNews(): | |
print('Option1; Select company of your choice or search for a company. 1. Tesla, 2. Google, 3. Amazon, 4. Apple 5. ' | |
'Microsoft OR option2 search for Company. ') | |
options = input("1.Please select a company\n 2.Search your required Company\n") | |
if input == 1: | |
options = input("please select Company for Tech News\n 1.Tesla\n 2.Google\n 3.Amazon\n 4.Apple\n 5.Microsoft\n") | |
if input == 1: | |
"teslaNews.py" | |
elif input == 2: | |
"googleNews.py" | |
elif input == 3: | |
"amazonNews.py" | |
elif input == 4: | |
"appleNews.py" | |
elif input == 5: | |
"microsoftNews.py" | |
elif input == 2: | |
input("Search your required company: ") |