user
Instruction: Write a function that prints the elements of a Python list in reverse order.
Output:
assistant
def print_list_reversed(lst):
    for i in range(len(lst)-1, -1, -1):
        print(lst[i])

print_list_reversed([1,2,3,4,5])

# Output: 5 4 3 2 1