Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to loop function until true python

try:
	func()
except:
	print("retrying")
    x = 0
    while x == 0:
    	try:
        	func()
            x +=1
        except:
        	pass
 
PREVIOUS NEXT
Tagged: #loop #function #true #python
ADD COMMENT
Topic
Name
4+9 =