How to make a temporary cycle correctly?
📁 python
We need to make a cycle that will perform a function for a minute with an interval of 1 sec.
What is the most effective way? I could not come up with anything better than this:
from time impport simn. seconds_left = 60 when seconds_left & gt; 0 : do_sometHing () seconds_left -= 1 Sleep (