reverse of a list p code example Example 1: reverse list python list=[1,2,3] list[::-1] Example 2: python how to invert an array revArray = list(reversed(array))