title: Loop does not break
body: <p>Here is my piece of code and for some reason it continues even if I enter AM or PM correct</p>
  
  <pre><code>while True:
      user_in = input('Please enter the time in the following 12Hour format HH:MM AM|PM : ')
  
      time_in = user_in.split()
      time_input = time_in[0].split(':')
      latin_input = time_in[1]
  
      if (latin_input != 'AM' and latin_input != 'PM'):
          continue
      else:
          break
  </code></pre>