How is Everybody Doing? function PRINT logic flow


#1



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


I cannot understand how print works. For such lines:
print get_class_average(students)
print get_letter_grade(get_class_average(students))
I get the output:
B
B
If I print:
print get_class_average(students)
print get_letter_grade(students)
I get the output:
A
A

Both answers are correct. Cannot understand how does it take such outputs.


students = [lloyd, alice, tyler]
print get_class_average(students)
print get_letter_grade(get_class_average(students))
#print get_letter_grade(students)

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


#2

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