0
How can I give a time to each line execution?
I want a line in my program to be run after 1 min from its previous line execution. Somehow giving time to them. How can that be done
2 Answers
+ 1
There is no accurate way to accomplish this using SoloLearn. Maybe in the actual python interperator.
+ 1
you can use time.sleep()function:
time.sleep(secs)
it's exactly like sleep function used in linux bash scripting.
You can read here for more info:
http://pythoncentral.io/pythons-time-sleep-pause-wait-sleep-stop-your-code/