title: How to only allow some inputs: python
body: <p>I am trying to only allow some input in python using the following code</p>
  
  <pre><code>while True:
      age=input('Are you 1,2 OR 3')
      if age== ('1' or '2' or '3'):
          break
      else:
          print('df')
  </code></pre>
  
  <p>When I enter 1, no error comes up and it continues to the rest of the programme, however when I enter 2 or 3, it comes up with the else: error. I've tried changing it round a bit and it seems as though it only accepts the first number from the choices (1).
  Probably a very simple fix. Thanks for any help.</p>