Answers for "run the loop until stop python"

1

python loop until condition met

finished = False
while not finished:
    ... do something...
    finished = evaluate_end_condition()
Posted by: Guest on August-30-2020
0

running code once in a while loop python

flg = True
while COUNT != 0:
    print("Running!")
    if flg:
        text = process[0] + " process running"
        url = URL + "sendMessage?text={0}&chat_id={1}".format(text, CHAT_ID)
        # send message to groups
        requests.get(url)
        flg = False
Posted by: Guest on January-04-2022

Python Answers by Framework

Browse Popular Code Answers by Language