title: How does Python return multiple values from a function?
body: <p>I have written the following code:</p>
  <pre><code>class FigureOut:
     def setName(self, name):
        fullname = name.split()
        self.first_name = fullname[0]
        self.last_name = fullname[1]
  
     def getName(self):
        return self.first_name, self.last_name
  
  f = FigureOut()
  f.setName(&quot;Allen Solly&quot;)
  name = f.getName()
  print (name)
  </code></pre>
  <p>I get the following <strong>Output:</strong></p>
  <pre><code>('Allen', 'Solly')
  </code></pre>
  <p>Whenever multiple values are returned from a function in python, does it always convert the multiple values to a <strong>list of multiple values</strong> and then returns it from the function?</p>
  <p><em>Is the whole process same as converting the multiple values to a <code>list</code> explicitly and then returning the list, for example in Java, as one can return only one object from a function in Java?</em></p>