O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

sorted()

From

Cover of Python Crash Course

Note

cars = ['bmw', 'audi', 'toyota', 'subaru']

cars.sort(reverse = True)

print(cars)

cars_sorted = sorted(cars, reverse = True)
print(cars_sorted)