Suggest a correction for the following python code to return the average of a given list of numbers.
def avg(numbers):
 sum = 0
 for n in numbers:
 sum = sum + n
 return sum
def avg(numbers):
 sum = 0
 for n in numbers:
 sum = sum + n
 return sum / len(numbers)