how to inverse list in python code example Example 1: reverse list python list=[1,2,3] list[::-1] Example 2: list reverse list.reverse()