title: In Python what's the difference between using 'elif' statements vs. 'or' statements?
body: <p>How are the two options different? I'm using some arbitrary code as an example but the question is general. </p>
  
  <p><strong>Using 'or'</strong></p>
  
  <pre><code>if (passenger['Sex'] == 'female') or (passenger['Pclass'] == 1):
      predictions[passenger_id] = 1
  else:
      predictions[passenger_id] = 0
  </code></pre>
  
  <p><strong>Using 'elif'</strong></p>
  
  <pre><code>if (passenger['Sex'] == 'female'):
      predictions[passenger_id] = 1
  elif (predictions[passenger_id] = 1):
      predictions[passenger_id] = 1
  else:
      predictions[passenger_id] = 0
  </code></pre>