Junior — Senior
In-place reversal of a list
livecode
Task condition
It is necessary to write a function that reverses the order of elements in the given list, using the list itself and returning it without creating a new object.
def reverse_list(data: list) -> list:
# TODO: Implement in-place list reversal
…