The use of sort() method, sorted() function and reverse() method

The use of sort() method, sorted() function and reverse() method
example:
places = ['peking', 'lijiang', 'xian', 'kunming', 'guilin']
print('Here is the original order:')
print(places)

print('\nHere is the alphabetical order:')
print(sorted(places))

print('\nHere is the original order again:')
print(places)

print('\nHere is the reverse alphabetical order:')
print(sorted(places, reverse=True))

print('\nThe list is still in its original order:')
print(places)

places.reverse()
print('\nHere is the reverse order:')
print(places)

places.reverse()
print('\nThe list is back to its original order:')
print(places)

places.sort()
print("\nUse sort() to change the list so it's stored in alphabetical order:")
print(places)

places.reverse()
print("\nUse reverse() to change the list so it's stored in reverse alphabetical order:")
print(places)

The result:

The use of sort() method, sorted() function and reverse() method