- 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.]
4 Réponses
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.
0
- 2
s=int(input ("enter seconds:"))
m=s//60
s=s%60
print(m,"minutes",s,"seconds")