Aim:
Write a function reverse to reverse a list. Without using the reverse function.
Program:
l = [1,2,3,4,5] print (l[::-1])
Execution:
[5, 4, 3, 2, 1]
Write a function reverse to reverse a list. Without using the reverse function.
l = [1,2,3,4,5] print (l[::-1])
[5, 4, 3, 2, 1]