title: Different return statement according to number of elements requested in python
body: <p>How can I do something like this in a function in python?</p>
  <pre><code>def cool():
      if (user wants to receive one element):
          return 10
      if (user wants to receice two elements):
          return 4, 2 
   
  a = cool()
  print(a) # 10
  
  x, y = cool()
  print(x) # 4
  print(y) # 2
  </code></pre>