Two ways to reverse a list in Python

Example:

my_list = [15, 6, 7, 8, 35, 12, 14, 4, 10, 15]
print("Reverse list method 1:", my_list[::-1])
# method 2
my_list.reverse()
print("Reverse list method 2:", my_list)
Output:
Reverse list method 1: [15, 10, 4, 14, 12, 35, 8, 7, 6, 15]
Reverse list method 2: [15, 10, 4, 14, 12, 35, 8, 7, 6, 15]