title: How can a function optionally return one or more values
body: <p>What is the preferred way to ignore an optional return values of function f()?</p>
  
  <p>a)</p>
  
  <pre><code>foo, _ = f()
  </code></pre>
  
  <p>b)</p>
  
  <pre><code>foo = f()[0]
  </code></pre>
  
  <p>c)</p>
  
  <pre><code>def f(return_bar=True):
      if return_bar:
          return foo, bar
      else:
          return foo
  
  foo = f(return_bar=False)
  </code></pre>