title: True or False in if-else
body: <p>I am curious about how the for loop determines whether a result of is_even is True or False.
  Why is_even(i) in the if-statement has result True, but False in the else-statement?</p>
  
  <pre><code>
  def is_even(i):
      '''input: i, a positive int; returns True if i is even, False otherwise'''
      remainder = i%2
      return remainder == 0
  
  for i in range(50):
      if is_even(i):
          print(is_even(i))
          print(i, 'even')
      else:
          print(is_even(i))
          print(i, 'odd')
  </code></pre>