As a refresher, let’s start off by writing a function to print out the list of grades, one element at a time.



Define a function on line 3 called print_grades with one argument, a list called grades_input.

Inside the function, iterate through grades_input and print each item on its own line.

After your function, call print_grades with the grades list as the parameter.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?