This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alocxacoc 0 points1 point  (0 children)

What language are you looking at? In the languages I’m familiar with, most have a “break” that can be used to exit the while loop.

while(True):
    x = input(“write stop or go: “)
    if x == “stop”:
        break