How is everyone doing?


#1

Here is my error code and i need help:
Oops, try again. Did you remember to print the average of the class? It looks like "83.8666666667" wasn't printed.

Here is my code:

ef get_letter_grade(score):
    if score >= 90:
        return "A"
    elif score >= 80:
        return "B"
    elif score >= 70:
        return "C"
    elif score >= 60:
        return "D"
    else:
        return "F"
def get_class_average(students):
    results =[]
    for students in students:
        results.append(get_average(students))
    return average(results)
print get_class_average
print get_letter_grade

#2

a function call requires parentheses:

function_name()

between the parentheses you need to supply the arguments


#3

Also, you seem to have mixed up some of your student for students. Two need to be changed for the for your results to return correctly.


#4

how do i do that can you give me the code of how to do that. I am not that good at coding but ok so please help me


#5

I am afraid I can't just give you the code. While you will pass the lesson if I do, you will not have learned anything. If you don't learn anything, what is the point? We are willing to work with you to help you solve your problem and already have as @stetim94 and I have given you helpful hints on what to work on. What are you having a problem with specifically now? Have you tried any of the suggestions above?


#6

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