To call a function repeatedly until it returns False, you can use a while loop. Here's an example:
main.py239 chars9 linesIn this example, my_function() is called repeatedly until it returns False. Once the function returns True, the loop will exit and the code after the loop will be executed.
gistlibby LogSnag