sort a list by name python code example Example: python sort list vowels = ['e', 'a', 'u', 'o', 'i'] vowels.sort()