Curso_Intensivo_de_PYTHON/chapter_07/cities.py
2023-06-02 17:22:53 +02:00

10 lines
258 B
Python

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()}!")