why, when you start start (), cycle start () stop () start () stop (), etc. .. does it have to stop after executing the stop () function? I study how cycles work
# -*- coding: utf-8 -*- import time from math import floor m = 3 #print(n, type(n), m, type(m)) a = 20 def start(): while True: try: n = 3 print(n, type(n)) time.sleep(2) while n - 1 > 0: #print("while",n) n -= 1 if n == 1: print("n", n, type(n)) time.sleep(4) stop() while True: try: print(n) time.sleep(2) break except: print("except") time.sleep(2) except: print("1") def stop(): try: print("stop") time.sleep(4) except: print("except")