# Python3 program to demonstrate the # use of reverse method # a list of numbers list1 = [1, 2, 3, 4, 1, 2, 6] list1.reverse() print(list1) # a list of characters list2 = ['a', 'b', 'c', 'd', 'a', 'a'] list2.reverse() print(list2)