STEP 13: Okay, with those grades removed, surely our average has changed. Let's see!

  • From , drag two Function Call with Parameter tools into the bottom of main().
  • Rename the first function call to print_grades, and the second to print_average().
  • Change the parameter inside both function calls from my_var to grades.
  • Click Run and see how there are now two grades missing and the average has gone up!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)