title: If statement hit when it shouldn't
body: <p>I am currently trying to write a simple countdowntimer. But if I take for example <code>10 hours</code> as an input the if statement for the minutes is still being triggered instead of the if statement for the hours. Because of this the code errors out like this:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;clock.py&quot;, line 29, in &lt;module&gt;
      timer.timer(test_input)
    File &quot;clock.py&quot;, line 6, in timer
      nt = int(nt)
  ValueError: invalid literal for int() with base 10: '10 hours'
  </code></pre>
  <p>I think that this error message is not necessary to solve this problem because you can see very clearly that this error is caused because the wrong if statement is being triggered.</p>
  <p>This is my code:</p>
  <pre><code>import time
  class timer():
      def timer(test_input):
          if 'minutes' or 'minute' in test_input:    
              nt = test_input.replace('minutes','').replace('minute','')
              nt = int(nt)
              nt = int(nt*60)
              print(nt)
              while nt:
                  mins, secs = divmod(nt, 60)
                  timer = '{:02d}:{:02d}'.format(mins, secs)
                  print(timer, end=&quot;\r&quot;)
                  time.sleep(1)
                  nt -= 1 
          elif 'hours' or 'hour' in test_input:
              nt = test_input.replace('hours','').replace('hour','')
              nt = int(nt)
              nt = int(nt*3600)
              print(nt)
              while nt:
                  mins, secs = divmod(nt, 60)
                  timer = '{:02d}:{:02d}'.format(mins, secs)
                  print(timer, end=&quot;\r&quot;)
                  time.sleep(1)
                  nt -= 1 
             
          print('ALARM')
         
  test_input = input('give me an input for your countdown: ')
  timer.timer(test_input)
  </code></pre>
  <p>Am I doing something wrong in my code? If so I would be very glad if someone could explain to me what I've made wrong and how I can fix this problem.</p>
  <p>Thank's for every help and suggestion in advance:)</p>
  <p>PS: Feel free to question if you don't understand something of my code.</p>