The while loop is not working for the program below. I am using python 3.6 and practicing on sublime text editor:
The out-put is as below:
Please enter the names of the city you have visited in Europe:
(Enter 'quit' when you are finished.)
(I do not understand where to put the value of the city and why it does not run infinitely. It also does not show the last print command). Please see the attached screenshot.
prompt="\n Please enter the names of the city you have visited in Europe:" 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()}.")
The out-put is as below:
Please enter the names of the city you have visited in Europe:
(Enter 'quit' when you are finished.)
(I do not understand where to put the value of the city and why it does not run infinitely. It also does not show the last print command). Please see the attached screenshot.