Curso_Intensivo_de_PYTHON/chapter_07/cities.py

11 lines
258 B
Python
Raw Permalink Normal View History

2023-06-02 17:22:53 +02:00
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(f"I'd love to go to {city.title()}!")