will run foreverthis loop runs foreverx while < print(xnow the value of will start at but never change as resultthe conditional test < will always evaluate to true and the while loop will run foreverprinting series of slike this --snip-every programmer accidentally writes an infinite while loop from time to timeespecially when program' loops have subtle exit conditions if your program gets stuck in an infinite looppress ctrl- or just close the terminal window displaying your program' output to avoid writing infinite loopstest every while loop and make sure the loop stops when you expect it to if you want your program to end when the user enters certain input valuerun the program and enter that value if the program doesn' endscrutinize the way your program handles the value that should cause the loop to exit make sure at least one part of the program can make the loop' condition false or cause it to reach break statement note some editorssuch as sublime texthave an embedded output window this can make it difficult to stop an infinite loopand you might have to close the editor to end the loop try it yourse lf - pizza toppingswrite loop that prompts the user to enter series of pizza toppings until they enter 'quitvalue as they enter each toppingprint message saying you'll add that topping to their pizza - movie ticketsa movie theater charges different ticket prices depending on person' age if person is under the age of the ticket is freeif they are between and the ticket is $ and if they are over age the ticket is $ write loop in which you ask users their ageand then tell them the cost of their movie ticket (continueduser input and while loops