Python: How to check if a variable is equal to one string or another string
<pre><code>    if var is 'stringone' or 'stringtwo':
        dosomething()
</code></pre>

<p>This does not work! I have a variable and I need it to do something when it is either of the values, but it will not enter the if statement.  In Java if (var == "stringone" || "stringtwo") works, how do I write this in Python?</p>
