title: how to make a counter in python
body: <p>I am trying to make a counter so if I type 'bye' it starts counting how long it has been since I said bye but the problem is that I can't type anything to stop the counter and I don't know how to have it tell you something when you type something to stop it. Here is my code for a counter but I tried to type something and it does not stop:</p>
  
  <pre><code>import time
  s = 0
  m = 0
  h = 0
  while s&lt;=60:
      print h, 'Hours', m, 'Minutes', s, 'Seconds'
      time.sleep(1)
      s+=1
      if s == 60:
          m+=1
          s = 0
      elif m ==60:
          h+=1
          m = 0
          s = 0
  </code></pre>