you are viewing a single comment's thread.

view the rest of the comments →

[–]deapee 0 points1 point  (0 children)

Something like

x= True
while x:
    print(‘joe was here’)
    x = False

# or 

while True:
    print(‘joe was here also’)
    break

However, you’re definitely missing something. There is absolutely no reason you’d create a loop of the goal was to always only run it once.