name_age ['tom' ]['jerry' ]['pluto' name_age [['tom' ]['jerry' ]['pluto' ]name_age sort(key=lambda namename[ ]sort by name name_age [['jerry' ]['pluto' ]['tom' ]name_age sort(key=lambda ageage[ ]name_age [['jerry' ]['tom' ]['pluto' ] [ name_age sort(key=lambda ageage[ ] nothing is saved in sort by age can not save the output use sorted(to save outputs to another list sorted(name_agekey=lambda ageage[ ]sorted(by age [['jerry' ]['tom' ]['pluto' ] sorted(name_agekey=lambda namename[ ] [['jerry' ]['tom' ]['pluto' ]sorted(by name strings various strings methods are shown in table as oppose to list methodsstring methods do not modify the underlying string data in the other wordsthe string methods return the new string which can be saved in new string object builtin types for representing data