Restart the loop
C_Dedev
-
jee pee Posted messages 31933 Registration date Status Modérateur Last intervention -
jee pee Posted messages 31933 Registration date Status Modérateur Last intervention -
Hello,
I would like to know if there is a way to restart the script at the beginning of a loop
something that looks like this.
(the solution of simply adding a condition before the
I would like to know if there is a way to restart the script at the beginning of a loop
something that looks like this.
(the solution of simply adding a condition before the
print("an other thing") does not fit the situation of the real script) infinite = True while infinite == True: if str(input()) == "True": print("something") #restart the loop print("an other thing")