demo_ref_list_sort.py:
cars = ['Ford', 'BMW', 'Volvo'] cars.sort() print(cars)
➜ begtut>python demo_list_sort.py
['BMW', 'Ford', 'Volvo']