promt = "\nWhat toppingf would you like on your pizza?" promt += "\nEnter 'done' when you are finished: " while True: topping = input(promt) if topping.lower() != "done": print("Ill add " + topping + " to your pizza.") else: break
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter