Why Is a Python List’s Sort Feature/Command Not Working?

Problem scenario
You have a list called cool_list. You use the .sort method. But the list is not getting alphabetized. How do you sort the strings alphabetically in the list?

Solution
Remember to use .sort(). Those last parentheses "()" are necessary.

Leave a comment

Your email address will not be published. Required fields are marked *