1 回答
TA贡献1966条经验 获得超4个赞
def recovered():
print("Recovered")
countries = ["China",
"India"
# etc.
]
# Updated, sample values and nested f-strings
China_3 = 3
India_3 = 5
for country in countries:
print(f"""{country} = {eval(f'{f"{country}_3"}')}""")
print("Now you are done with the tutorial, you will be able to explore your virus!\n")
print("""
Here are the controls:
1 = Cases
2 = Deaths
3 = Recovered
4 = DNA points
""")
def cases():
pass
def deaths():
pass
def dna():
pass
def smartness():
pass
def main():
"""Driver function."""
global DNA
global Smartness
global cases
global deaths
global recovered
print("Do your actions: ")
choice = input("")
if choice == "1":
cases()
print("")
main()
elif choice == "2":
deaths()
print("")
main()
elif choice == "3":
recovered()
print("")
main()
elif choice == "4":
dna()
print("")
main()
elif choice == "5":
smartness()
print("")
main()
else:
print("Only chose a number between 1 and 5!")
main()
main()
添加回答
举报