do a function once in a while loop python code example
Example 1: 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.
Example 2: how to make code only go once python
run_once = 0
while 1:
if run_once == 0:
myFunction()
run_once = 1: