Https://www.codecademy.com/courses/learn-python/lessons/exam-statistics/exercises/print-those-grades

https://www.codecademy.com/courses/learn-python/lessons/exam-statistics/exercises/print-those-grades

Starting from line 9 is my attempt of the exercise and the above is the solution.
My query is regarding the solution,as to why they have not used the return function

Why is my code giving me this error

My line 5 and line 13 is also different why am l wrong

Thank you
Jagmeet

Should for be written with a capital? Here is the correct syntax:

for item in objects:
  #code 

You had For-see the difference?

2 Likes

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