Hi, 
The .sort command should sort myList into alphabetical order. But it 
doesnt. Instead I get this error. 
myList.sort()
# Error: 'tuple' object has no attribute 'sort'
# Traceback (most recent call last):
#   File "<maya console>", line 2, in <module>
# AttributeError: 'tuple' object has no attribute 'sort' # 

Any ideas what I'm doing wrong here?

myList = ('Perth', 'Albany', 'Sydney', 'Wellinton', 'London', 'Thailand', 
'San_Francisco')
myList.sort()


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/791faa64-4781-47cf-8015-60ceda37e4d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to