Human: get average from list in. Assistant: 
Here is a Python function to get average from list in Python

import numpy as np

def get_average(list_of_numbers):
    """
    Returns the average of a list of numbers.
    """
    return sum(list_of_numbers) / len(list_of_numbers)

# Enter the list
list_of_numbers = [1, 2, 3, 4, 5]

# Calling the function
print((get_average(list_of_numbers)))

#Example Output
# 3.0

#Remember to inspect code for bugs.