Skip to content
← Back to Community
Restart program
Profile icon
duduremiao

Which command I need to use when con == s to back to the start of the progra

Voters
Profile icon
FlamezRampage
Profile icon
duduremiao
Comments
hotnewtop
Profile icon
SixBeeps

You need what's called a while loop. It repeats code until a certain condition is met. However, you can also make it so that condition is unreachable, so it repeats forever. It looks like this:

while (true): print('This code repeats forever!') print('This line is never reached')