python reverse list string code example Example 1: python reverse list list.reverse() Example 2: reverse list python list=[1,2,3] list[::-1]