title: Convert seconds to weeks-days-hours-minutes-seconds in Python
body: <p>I'm trying to code a Python script for 'Enter the number of Seconds' and get results in weeks, days, hours, minutes and seconds. Here is what I have, but I am not getting the correct answers. What am I doing wrong?</p>
  
  <pre><code>seconds = raw_input("Enter the number of seconds:")
  seconds = int(seconds)
  
  minutes = seconds/60
  
  seconds = seconds % 60
  
  hours = minutes/60
  hours = seconds/3600
  
  minutes = minutes % 60
  
  days = hours/24
  days = minutes/1440
  days = seconds/86400
  
  hours = hours % 60
  hours = minutes % 60
  hours = seconds % 3600
  
  weeks = days/7
  weeks = hours/168
  weeks = minutes/10080
  weeks = seconds/604800
  
  days = days % 1
  days = hours % 24
  days = minutes % 1440
  days = seconds % 86400
  
  weeks = weeks % 1
  weeks = days % 7
  weeks = hours % 168
  weeks = minutes % 10080
  weeks = seconds % 604800
  
  print weeks, 'weeks', days, 'days', hours, 'hours', minutes, 'minutes', seconds, 'seconds'
  </code></pre>