Q. Write a program that reads a number of seconds and print it in form : mins And second ,

eg , 200 second are printed as 3 mins and 20 second.


You can understand by Watching video :-



Answer :-

time= int(input("Enter the time in second = "))
min =  time // 60
second = time%60
print("Time = ",min,"mins",second,"second ")

Output :-

Enter the time in second = 200
Time =  3 mins 20 second

>>> 

Enter the time in second = 120
Time =  2 mins 0 second

>>> 

Enter the time in second = 75
Time =  1 mins 15 second

>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post