title: Python 3 if statements calling wrong function
body: <pre><code>if action == 1:
      forage()
  elif action == 2:
      forage()
  else:
      display()
  </code></pre>
  
  <p>Without knowing the context of what I'm trying to do, here's my problem: whenever I put in 1 or 2, it calls display() rather than calling forage().</p>
  
  <p>Sorry if this question is too dumb to be Stackoverflow material I suppose, but I seem to get this problem a lot and I want it solved once and for all, and can't seem to find a solution. Hopefully you guys can help me.</p>