title: How to convert seconds into hh:mm:ss in python 3.x
body: <p>I need to do this with just the math operators, but i always get ridiculously high numbers in the fields.</p>
  
  <pre><code>def main():
  seconds = int(input('Seconds to be converted? '))
  days = seconds / 86400
  seconds = seconds - (days * 86400)
  hours = seconds / 3600
  seconds = seconds - (hours * 3600)
  minutes = seconds / 60
  seconds = seconds - (minutes * 60)
  
  print('-------------')
  print('You entered: ', seconds)
  print('')
  print('The converted time is: ', format(days, '1.0f'), ':', format(hours, '1.0f'), ':', format(minutes, '1.0f'), ':', format(seconds, '1.0f'))
  </code></pre>