title: python 3.4, timer count down not working
body: <p>I want to create a clock that count down in hours min and seconds, but for some reason is not working, can somebody help me</p>
  
  <pre><code>def countdown():
    times = 1
    th = 1
    tm = 0
    ts = 0
    while times != 0:
      if (ts&gt;0 or tm&gt;0 or th&gt;0):
        print ('it run for ' + str(th) + ' Hours ' + str(tm) + ' Minutes ' + str(ts) + ' Seconds ')
        time.sleep(1)
        ts = ts - 1
        if (ts==0 and (tm&gt;0 or th&gt;0)):
          ts = 59
          tm = tm - 1
          if(ts==0 or tm==0 and th&gt;0):
            ts = 59
            tm = 59
            th = th - 1
            if (ts==0 and tm==0 and th==0):          
              times = 0
    else:
      print ('stopped')
      ts = 0
      tm = 0
      th = 0
  
  countdown()
  </code></pre>
  
  <p>thanks</p>