as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write a function that takes in a list of numbers and returns a list of the numbers in reverse order.
user
"""
function to reverse a list of numbers
"""

def reverse_list(input_list):
    reverse_list = input_list.copy()
    reverse_list.reverse()
    return reverse_list

if __name__ == '__main__':
    l = [1, 2, 3, 4, 5]
    print(reverse_list(l))
    # output: [5, 4, 3, 2, 1]
assistant