Няма описание

cars.py 291B

1234567891011121314
  1. cars = ['bmw', 'audi', 'toyota', 'subaru']
  2. print("Here is the original list:")
  3. print(cars)
  4. print("\nHere is the sorted list:")
  5. print(sorted(cars))
  6. print("\nHere is the reverse alphabetical list:")
  7. print(sorted(cars, reverse=True))
  8. print("\nHere is the original list again:")
  9. print(cars)