I am trying to make a list in a function and print the "new" list when the user has written a country.
def main():
while True:
user()
my_list()
def my_list():
c = ["England", "Japan", "China"]
print(c)
def user():
country = input("Country?")
new = my_list().append(country)
return new
main()
But I'm getting an error with this code. I appreciate all the help.