Generate a function for calculating the average of a list of numbers in Python.
Not applicable
def avg_list(lst):
 sum = 0
 count = 0
 for i in lst:
  sum += i
  count += 1
 avg = sum / count
 return avg