Dec-08-2017, 10:49 PM
Hi all, I'm having a problem trying to run this program. I was messing around with a similar program I tried to create and it would not work. So i took this one right out of my book and I the get the same outcome. Any help would be great ty
prompt = "\nPlease enter the name of a city you have visited: " prompt += "\n(enter 'quit' when you are finished.) " while True: city = input(prompt) if city == 'quit': break else: print("id love to go to " + city.title() + "!") Please enter the name of a city you have visited: (enter 'quit' when you are finished.) tbay Traceback (most recent call last): File "input.py", line 30, in <module> city = input(prompt) File "<string>", line 1, in <module> NameError: name 'tbay' is not defined