How is everybody doing


#1


https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/5?curriculum_id=4f89dab3d788890003000096

been stuck on this for a while feel kind of bad to have to keep posting questions i just don't know what i am doing wrong when i run code this error message pops up

Oops, try again. Did you remember to print the letter grade for the class's average?

i just can't figure this out


 ef get_class_average(students):
  results = []
  for students in students:
      get_average(students)
      results.append(get_average(students))
  return average(results)
print get_letter_grade(get_class_average)
students = alice, lloyd, tyler
print get_class_average([alice, lloyd, tyler])


#2

Missing the d in ef get_class_average(students):.
Also check your indentation. It looks a little off.


#3

I tried what you said but the same error still pops up I am very confused :confused: I am thankful for your help though


#4

From the code you shared. Add d to ef get_class_average(students): so it's def get_class_average(students):.
Next, for every line below def get_class_average(students):, press the TAB key to make sure everything is lined up properly.


#5

It looks like you forgot to pass an argument with this function call:
print get_letter_grade (get_class_average(students))

I'm just passing the list which you can do as well.

Also, in your for loop, you don't need to call get_average and then again on the next line. the third line does the job.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.