Time Conversion Program in Python
Seconds
to Minutes
#minute=seconds/60
seconds=float(input("Enter
seconds:"))
minute=seconds/60
print("The conversions of
seconds to minute is:", round(minute,2))
Output:
Enter seconds:2000
The conversions of seconds to
minute is: 33.33
Minutes to Hours
minutes=float(input("Enter
minutes: "))
hours=minutes/60
print("The conversion of
minutes to hours is:",round(hours,2))
Output:
Enter minutes: 600
The conversion of minutes to
hours is: 10.0
Hours to minutes
hours=float(input("Enter
hours:"))
minutes=hours*60
print("The hours to
minutes conversion is:", round(minutes,2))
Output:
Enter hours:10
The hours to minutes
conversion is: 600.0
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏