python - AttributeError: 'tuple' object has no attribute ...
https://stackoverflow.com/questions/1729011425.06.2013 · Variables names are only locally meaningful. Once you hit. return s1,s2,s3,s4. at the end of the method, Python constructs a tuple with the values of s1, s2, s3 and s4 as its four members at index 0, 1, 2 and 3 - NOT a dictionary of variable names to values, NOT an object with variable names and their values, etc.
python - AttributeError: 'tuple' object has no attribute ...
stackoverflow.com › questions › 17290114Jun 25, 2013 · Variables names are only locally meaningful. Once you hit. return s1,s2,s3,s4. at the end of the method, Python constructs a tuple with the values of s1, s2, s3 and s4 as its four members at index 0, 1, 2 and 3 - NOT a dictionary of variable names to values, NOT an object with variable names and their values, etc.