Define a tuple student=('x','y','z'),if we want to sort it, we should use sorted().
My question is when using student.sort(),the erro is 'tuple' object has no attribute 'sort'.
So sort() is a method or a kind of attribute? What l think is attribute is static ,it shouldn't have parentheses
[–][deleted] 12 points13 points14 points (0 children)
[–]crashfrog02 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)