title: AttributeError: 'tuple' object has no attribute
body: <p>I'm a beginner in python. I'm not able to understand what the problem is?</p>
  
  <pre><code>def list_benefits():
  
          s1 = "More organized code"
          s2 = "More readable code"
          s3 = "Easier code reuse"
          s4 = "Allowing programmers to share and connect code together"
          return s1,s2,s3,s4
  
  def build_sentence():
  
          obj=list_benefits()
          print obj.s1 + " is a benefit of functions!"
          print obj.s2 + " is a benefit of functions!"
          print obj.s3 + " is a benefit of functions!"
  
  print build_sentence()
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
     Line 15, in &lt;module&gt;
     print build_sentence()
     Line 11, in build_sentence
     print obj.s1 + " is a benefit of functions!"
  AttributeError: 'tuple' object has no attribute 's1'
  </code></pre>