SyntaxFix
Write A Post
Hire A Developer
Questions
Run the function before the loop. Example:
myFunction() while True: # all the other code being executed in your loop
This is the obvious solution. If there's more than meets the eye, the solution may be a bit more complicated.