How to calculate seconds

CODE




How to calculate seconds:

Convert 7 hours 21 minutes and 37 seconds in seconds:
print("Number of seconds =",7*60*60+21*60+37)

Output:
Number of seconds = 26497

How to calculate seconds How to calculate seconds Reviewed by Unknown on December 10, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.