title: True & False in a function def
body: <p>I understand what the function below does, but I don't quite get the significance (or difference) between returning <code>True</code> and <code>False</code>.</p>
  
  <p>Both clauses make the program exit; i.e. upon entering a positive or negative response, the Python prompt is returned, so what actually changes internally?</p>
  
  <p>Also, if I were to <em>design</em> such a function myself, should I use <code>True</code> or <code>False</code> if I just wanted the program to return the prompt to me without actually doing anything?</p>
  
  <pre><code>def ask(prompt, retries = 4, reminder = 'Please try again!'):
      while True:
          response = input(prompt)
          if response in ('y', 'yes'):
              print('Got y or yes!')
              return True
          if response in ('n', 'no', 'nope'):
              print('Got n or no or nope!')
              return False
          retries = retries - 1
          if retries &lt; 0:
              raise ValueError('Invalid user response!')
          print(reminder)
  
  ask('Do you wanna quit?')
  </code></pre>