Part of the Whole Alice Issue


#1




It says that the average for Alice is 83.8666666666667 instead of 91.15 as expected. How do I fix this?


Replace this line with your code.


#2

Without seeing any code, it sounds like an indentation issue on a return statement could be the culprit. That is only guessing, mind.

The fact that this is the class average speaks to another problem, as yet unknown.


#3

I changed the bottom portion to a for loop but the same issue is occurring. Here is the link for that: https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096


#4

Do you mean that 83.86666666667 is the class average? If so, any ideas why it is showing up for Alice? I also changed the bottom portion of my code to a for loop to delete some of the text, but it should have the same function as my old code. https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096


#5

This is something you can test for yourself. Yes. It is the class average.

The links will only lead to our own code, not yours. Plain text (raw source) is what we need to be able to asses the presence of any issues in your code.


#6

here is my code:




#8

The line,

print get_letter_grade

is not going to output what you expect. That line may be removed.

The students list should not be inside the get_class_average function. Remove it from there and place with the rest of the data up top (just under the dictionaries).


#9

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