8. Part of the Whole


#1


https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096
I'm stock. Please help.

File "python", line 46
def get_class_average(student)
^
SyntaxError: invalid syntax


def get_class_average(student)
    reults = []
    for student in student:
    return result.append(get_average(student))
    print result


#2

Check your spelling on result.


#3

Thanks for responding. But it's still doesn't work. Here:

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

File "python", line 49
print result.append(get_average(student))
^
IndentationError: expected an indented block


#4

Check your indentation for the return line. After colon you need to indent your block.


#5

I think you need a colon after defining the function on line 46, so:

def get_class_average(student):

Also I don't think you can loop though a variable in a group defined by the same variable (student in student)


#6

I already solved it. Thanks


#9

4 posts were split to a new topic: Cant solve mine it is taking forever


#12