title: Boolean logic in function
body: <p>This function compares the Instagram followers count of two accounts, and taking the input from the user (a guess as to which one has more followers). I created a longer version of if/elif statements but instructor wrote this shorter version:</p>
  <pre><code>def check_answer(guess, a_followers, b_followers):
      if a_followers &gt; b_followers:
          return guess == 'a'
      else:
          return guess == 'b'
  </code></pre>
  <p>I am unable to understand why <code>return guess == 'a' </code> returns a boolean value. I know that a double equal sign checks equality between two entities.</p>