sort the values in reverse order enter the following into the interactive shellspam sort(reverse=truespam ['elephants''dogs''cats''badgers''ants'there are three things you should note about the sort(method firstthe sort(method sorts the list in placedon' try to capture the return value by writing code like spam spam sort(secondyou cannot sort lists that have both number values and string values in themsince python doesn' know how to compare these values enter the following into the interactive shell and notice the typeerror errorspam [ 'alice''bob'spam sort(traceback (most recent call last)file ""line in spam sort(typeerror'<not supported between instances of 'strand 'intthirdsort(uses "asciibetical orderrather than actual alphabetical order for sorting strings this means uppercase letters come before lowercase letters thereforethe lowercase is sorted so that it comes after the uppercase for an exampleenter the following into the interactive shellspam ['alice''ants''bob''badgers''carol''cats'spam sort(spam ['alice''bob''carol''ants''badgers''cats'if you need to sort the values in regular alphabetical orderpass str lower for the key keyword argument in the sort(method call spam [' '' '' '' 'spam sort(key=str lowerspam [' '' '' '' 'this causes the sort(function to treat all the items in the list as if they were lowercase without actually changing the values in the list reversing the values in list with the reverse(method if you need to quickly reverse the order of the items in listyou can call the reverse(list method enter the following into the interactive shellspam ['cat''dog''moose'spam reverse(spam ['moose''dog''cat'lists