English, asked by nancy190, 6 months ago

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 babitabhandari12
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