Ei kuvausta

cities.py 253B

1234567891011
  1. prompt = "\nPlease tell me a city you have visited:"
  2. prompt += "\n(Enter 'quit' when you are finished.) "
  3. while True:
  4. city = input(prompt)
  5. if city == 'quit':
  6. break
  7. else:
  8. print("I'd love to go to " + city.title() + "!")