0

I want to write a function which takes in a nonnegative integer number of seconds s and returns a list in the same format [days, hours, minutes, seconds]. I found one post about it here but I am a beginner (literally started using Python two weeks ago) so I'm looking for a simple function. I know I probably need to use mod or % or something but I'm having trouble starting

user3517740
  • 47
  • 3
  • 12

0 Answers0