reversing array in python code example Example: reverse an array pyton array=[0,10,20,40] reversed_array=array[::-1]