Sobes.tech
Senior

# Task. Given a list, reverse it #z = [1, 2, 3, 4, 5] # The result should be the list [5, 4, 3, 2, 1] # You need to implement a function that reverses the list. # Built-in methods (z[::-1], z.reverse(), reversed(z)) cannot be used. # You cannot create new lists. It is recommended to use a for loop def reverse(lst: list) -> list: ...