title: Python Military Time formula and string formatting
body: <p>I have created a function to take a string input "minutes-since-midnight" and convert it into military time.For example- 365 = 0605,441 = 0721,864 = 1424. For some reason my outputs are: 066, 077, 1414. Can someone please explain to me what I am doing wrong</p>
  
  <pre><code>def military_time(minutes):
      if minutes &lt; 600:
          hour = minutes // 60 
          minute = minutes % 60
          print("0{0:0}{0:0}".format(hour,minute))
      elif 600 &lt; minutes &lt; 720:
          hour = minutes // 60
          minute = minutes % 60
          print("{0:0}{0:0}".format(hour,minute))
      elif minutes == 720:
          hour = 1200
          print(hour)
      else:
          hour = ((minutes-720) // 60) + 12
          minute = (minutes) % 60
          print("{0:0}{0:0}".format(hour,minute))
  </code></pre>