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

>>>

1 Comments

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

  1. It's very useful
    It is one of the best site
    I am using VEDANTU app. Even though I am using this

    ReplyDelete

Post a Comment

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

Previous Post Next Post