►
Run
words = ["car", "apple", "banana"] #sort list in ascending order sortedList = sorted(words) print(words) print(sortedList)
Output