- 1

Write a program that asks the user for a number of seconds and prints out how many minutes and seconds.

For instance, 200 seconds is 3 minutes and 20 seconds. [Hint: Use the //operator to get minutes and the % operator to get seconds.]

25th Aug 2018, 6:22 AM
Divyansh Sunny
Divyansh Sunny - avatar
4 Respostas
0
Please provide a link to your Code Playground code so we can help you troubleshoot the specific issues you are running into. The Code Playground should be relatively easy to find in the website version of SoloLearn, but if you are in the app version, it can be accessed via the curly braces, green circle with plus sign to add a new project, then select the project type. Looking forward.
25th Aug 2018, 7:03 AM
Janning⭐
Janning⭐ - avatar
0
18th Feb 2021, 2:44 PM
ابن الوطن ٤
ابن الوطن ٤ - avatar
- 2
s=int(input ("enter seconds:")) m=s//60 s=s%60 print(m,"minutes",s,"seconds")
26th Aug 2018, 10:39 AM
Divyansh Sunny
Divyansh Sunny - avatar