How can I simplify my if condition in python?
<p>I would like to know if there's a simpler way to write the condition of the <code>if</code> statement. Something like <code>item1, item2 == "wood":</code>. I currently have this code:</p>

<pre><code>item1 = input("item1: ")
item2 = input("item2: ")

if item1 == "wood" and item2 == "wood":
    print("You created a stick")
</code></pre>

<p>You have two ways. you can use "==" for two variables.</p>

<pre><code>item1 = input("item1: ")
item2 = input("item2: ")

if item1 == item2 == "wood":
    print("You created a stick")
</code></pre>

<p>And also you can do using a for loop. But for that you have to use a list first.So this would help if you are using huge number of inputs.</p>

<pre><code>list1=[]
item1 = (input("item1: "))
item2 = (input("item1: "))

list1.append(item1)
list1.append(item2)

if all(item=="wood" for item in list1):
    print("You created a stick")
</code></pre>

python if-statement condition simplify