Just weight and see help


I can't figure out what I am doing wrong :confused::angry: after I click submit this error code pops up

Oops, try again. Make sure you have defined get_average

here is the link to the problem: https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/2?curriculum_id=4f89dab3d788890003000096

thank you for your help code is below

 def average(numbers):
  total = sum(numbers)
  total = float(total)
  total = float(total) / len(numbers)
  return total
  def get_average(student):
   homework = average(student["homework"])
   quizzes = average(student["quizzes"])                                     
   tests = average(student["tests"])
   get_average = homework * 0.1 + quizzes * 0.3 + tests * 0.6
   return get_average



I think your code is perfect, except that the first line of the def get_average method definition is indented and should not be. Try it without indentation, and let us know if that doesn't work for ya!


can i see your full code? please use format:

otherwise indent won't show up, and you seem to have an indention issue


thank you that was the problem