Answer the question
In order to leave comments, you need to log in
How to restart a python script?
The question is, is it possible, if an error occurs in the execution of the program, to start it again?
Example: an error occurred during the execution of the program, and accordingly we are informed about this that there is an error in such and such a place, in this situation is there a way to just start all over again?
Answer the question
In order to leave comments, you need to log in
For example, in general terms, you can do something like this: take 'while True', inside this loop is the 'try' block, in which the body of the program, and in except throw 'continue'.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question