title: How can I do variable.endswith("a" or "b" or "c"....) : doAThing in Python?
body: <p>I'm working on a small piece of translation software in its early stages. I'm trying to take the end character of a word and do something with it, but I need to differentiate between different cases.</p>
  
  <p>How can I use <code>if endswith("a" or "b" or "c") : doAThing</code>?</p>
  
  <p>I've tried <code>||</code>, <code>|=</code>, and <code>or</code>.</p>
  
  <pre><code>if word.endswith("a" , "e" , "i" , "o" , "u") : print("JEFF")
  </code></pre>
  
  <p>Error:</p>
  
  <pre class="lang-none prettyprint-override"><code> File "test.py", line 50, in &lt;module&gt;
      if word.endswith("a" , "e" , "i" , "o" , "u") and not ("a" , "e" , "i" , "o" , "u"): print("JEFF")
  TypeError: endswith() takes at most 3 arguments (5 given)
  </code></pre>