title: An alternative to many if-statements?
body: <p>So I have 3 different variables.</p>
  
  <p>model which is a string and defines the
  iPhone model.</p>
  
  <p>storage which is a integer that defines the phones storage.</p>
  
  <p>And finally price, which is an integer that defines the price of the phone.</p>
  
  <p>Example:</p>
  
  <pre><code>model = iPhone 7
  storage = 64 (GB)
  price = 700 ($)
  </code></pre>
  
  <p>Another example:</p>
  
  <pre><code>model = iPhone 5s
  storage = 16
  price = 150
  </code></pre>
  
  <p>Now I want my program to notify me if I can make a good deal by buying and reselling, and my question is how do I do that in the most efficent way?</p>
  
  <p>I know that I can use if statements, but is there any method to save me from writing alot diffrent if or elif statements?</p>
  
  <p>Example:</p>
  
  <pre><code>if model == "iPhone 7" and storage == 64 and price &lt;= 700:
  print("do_something")
  </code></pre>
  
  <p>That's alot of code for just 1 model and storage option. If I would be using this method i'd have to write 29 more.</p>