WAP that asks the user to input time in minutes and then converts it into hours and remaining minutes (in PYTHON)
Answers
Answered by
3
import math
mins = int(input("enter mins: "))
time = mins / 60
minutes = int(math.modf(time)[0] * 60)
hours = str(time).split(".")[0]
print(f"{hours}hr {minutes} min")
Similar questions