reverse an array in python3 code example
Example 1: python reverse list
list.reverse()
Example 2: reverse an array pyton
array=[0,10,20,40]
reversed_array=array[::-1]
list.reverse()
array=[0,10,20,40]
reversed_array=array[::-1]