title: Is there a way to make the if statements shorter?
body: <p>I am having the user input an allergy symptom and tell the user that the symptom is an allergy symptom, if the symptom is in the tuple and if its not then it'll tell them &quot;not an allergy symptom. I had tried using a tuple and wrote &quot;if user_input == &quot;tuple_name&quot;:&quot;, but it didn't work. Is there a way to do this? If the tuple doesn't work, is there a way to make the if else statements shorter?</p>
  <p>This is the tiny program so far:</p>
  <pre><code># most common questions asked by patients at pharmacy
  # allergy treatment
  def symptoms(allergies):
  while True:
      user_input = input(&quot;enter symptom: &quot;)
      if user_input == &quot;runny nose&quot;:
          print(&quot;allergy symptom&quot;)
      elif user_input == &quot;itchy throat&quot;:
          print(&quot;allergy symptom&quot;)
      elif user_input == &quot;watery eyes&quot;:
          print(&quot;allergy symptom&quot;)
      elif user_input == &quot;itchy nose&quot;:
          print(&quot;allergy symptom&quot;)
      elif user_input == &quot;trouble breathing&quot;:
          print(&quot;this is a severe allergic reaction. Call 911!&quot;)
          break
      elif user_input == &quot;hives&quot;:
          print(&quot;this is an allergic reaction&quot;)
      elif user_input == &quot;rash&quot;:
          print(&quot;this is an allergic reaction&quot;)
      elif user_input == &quot;throat closing&quot;:
          print(&quot;this is a severe allergic reaction. Call 911!&quot;)
          break
      elif user_input == &quot;swelling&quot;:
          print(&quot;this is an allergic reaction&quot;)
      else:
          print(&quot;not an allergy symptom.&quot;)
  
  
  symptoms('allergies')
  
  
  # Rph recommended otc products for mild allergic reactions and for allergies
  def allergy_otc():
  while True:
      pt_otc_age = input(&quot;Is the patient younger than 12 years old? &quot;)
      if pt_otc_age == &quot;yes&quot;:
          print(&quot;Recommended: Children's Zyrtec, Claritin, Allegra, &amp; Benadryl&quot;)
      else:
          print(&quot;Recommended: Claritin, Zyrtec, Allegra, &amp; Benadryl&quot;)
      pt_pregnancy_status = input(&quot;Is the patient pregnant? &quot;)
      if pt_pregnancy_status == &quot;yes&quot;:
          print(&quot;Recommended allergy medication for pregnant women would be Claritin.&quot;)
      else:
          break
  
  
  allergy_otc()
  </code></pre>