Read a list of n elements. Pass this list to a function which reverses this list in-place without creating a new list.
Answers
Answered by
1
Answer:
Using the reverse() method we can reverse the contents of the list object in-place i.e., we don't need to create a new list instead we just copy the existing elements to the original list in reverse order.
Similar questions