nums = [1, 2, 3, 4, 5] print('before: ') print(nums) #call the reverse method() nums.reverse() print("after: ") print(nums)