Answers for "do a function once in a while loop python"

0

how to make code only go once python

run_once = 0
while 1:
    if run_once == 0:
        myFunction()
        run_once = 1:
Posted by: Guest on August-18-2020
0

how to make the score add on while its in a loop in python

To avoid the values of score being reset to 0 on every iteration of the loop you should initialize both variables above the while loop.
Posted by: Guest on August-20-2020

Code answers related to "do a function once in a while loop python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language