Ask coding questions

← Back to all posts
can someone tell me how to add a restart function to this?
19sthomas (0)

as the title says, just a project that i am doing.

Answered by FloCal35 (668) [earned 5 cycles]
View Answer
FloCal35 (668)

Use while True

while True:
   #code here

And if you need to exit the loop, use break

while True:
   #code here
DynamicSquid (4914)

Put your code under a while True: