I need to break from time.sleep() using ctrl c.
While 1: time.sleep(60)
In the above code when the control enters time.sleep function a
Not sure what the sense of this code is - but if necessary use a shorter sleep() interval and put a for loop around it:
for i in range(60): sleep(1)
Catching the KeyboardInterrupt exception using try..except is straight-forward