for python invert array code example Example: python invert an array >>> L = [0,10,20,40] >>> L[::-1] [40, 20, 10, 0]