human
Create a function that computes the average of an array of numbers.
Input:
[1, 2, 3, 4, 5]
gpt
def avg(nums):
    sum = 0
    for num in nums:
        sum += num
    return sum / len(nums)  # Output: 3.0
alpaca_kmeans_100_gpt2_10per_3844