Answer the question
In order to leave comments, you need to log in
How to count looping and stop code execution in such cases?
In general, there is a piece when, which inevitably loops under certain circumstances (not because of the code).
The question is, what and where to add, so that the function, with an infinite looping of a certain one, while
simply issues break
or Let's
assume such a function:return False
def func():
a = 0 #точка А
while a<0:
#разного рода код
#куча if-else
b = 1 #точка Б
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question