Program to convert time in seconds to minutes and hours
======= CONVERT TIME INTO MINUTE AND SECONDS=========
second=input("Enter Time in Seconds :")
s=second%60
minute=second/60
m=minute%60
h=minute/60
print "Time is ",h," Hours ",m," Minute ",s," Seconds"
=================== OUTPUT = =====================
Enter Time in Seconds :8406
Time is 2 Hours 20 Minute 6 Seconds
===================================================
No comments