Answers for "repeat wait until python"

4

python wait until

import time
def waitUntil(condition, output): #defines function
    wU = True
    while wU == True:
        if condition: #checks the condition
            output
            wU = False
        time.sleep(60) #waits 60s for preformance

waitUntil(Cookies >= 0, eatCookies()) #runs function (output MUST be another function)
Posted by: Guest on November-19-2020
0

py repeat until

# Will repeat until x is greater than 5
x = 0

while x <= 5:
  print(x)
  x+=1
Posted by: Guest on April-14-2022

Python Answers by Framework

Browse Popular Code Answers by Language