Python Example | Reverse a List

This python example code introduces how to reverse a python list.

#List of Countries
countries = ['USA', 'China', 'Japan', 'UK']
print('Original List of Countries:', countries)

# List Reverse
countries.reverse()

# updated list
print('Updated List of Countries:', countries)