Computer Science, asked by natsudragonaire777, 7 days ago

Write a function that takes a list as argument and reverse

the list without using second list.​

Answers

Answered by kajalpal1975
0

Answer:

Python:-

def reverse(list):

i = 0

j = len(list)-1

while (i<j):

list[i], list[j] = list[j], list[i]

i += 1

j -= 1

Similar questions