Cant figure out the error!


#1

Keep getting this error message ,any help understanding the problem would be useful

average([3, 0]) resulted in an error: sum expected at least 1 arguments, got 0

def average(numbers):
  total=0
  sum().numbers = total
  float().total=total
  total/numbers.len()
  return total/numbers.len()

#2

Can you give me a screenshot of the code?


#3

Thank you but i have figured it out