python - AttributeError: 'tuple' object has no attribute ...
https://stackoverflow.com/questions/1729011403.03.2014 · 5 Answers5. Show activity on this post. You return four variables s1,s2,s3,s4 and receive them using a single variable obj. This is what is called a tuple, obj is associated with 4 values, the values of s1,s2,s3,s4. So, use index as you use in a list to get the value you want, in order. obj=list_benefits () print obj [0] + " is a benefit of ...
python - AttributeError: 'tuple' object has no attribute ...
stackoverflow.com › questions › 17290114Mar 03, 2014 · 5 Answers5. Show activity on this post. You return four variables s1,s2,s3,s4 and receive them using a single variable obj. This is what is called a tuple, obj is associated with 4 values, the values of s1,s2,s3,s4. So, use index as you use in a list to get the value you want, in order. obj=list_benefits () print obj [0] + " is a benefit of ...