WAP that reverses an array of integers (in place)
Solution
L=[1,2,3,4,5,6] end=len(L)-1 limit=int(end/2)+1 for i in range(limit): L[i],L[end]=L[end],L[i] end=end-1 print(L)
Output
[6, 5, 4, 3, 2, 1]