9 lines
228 B
Python
9 lines
228 B
Python
prompt = "\n Please 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(city.title()) |