mini script that tells you the number of hours the calculator was on since its last reset.
from time import monotonic as M z="a" while z!="0": if z=="h":z=M()/60/60 else:z=M() print(z) z=input("h (hours) or any (seconds).\n0 to stop\n")
Create, edit, and import your Python scripts
mini script that tells you the number of hours the calculator was on since its last reset.
from time import monotonic as M z="a" while z!="0": if z=="h":z=M()/60/60 else:z=M() print(z) z=input("h (hours) or any (seconds).\n0 to stop\n")