WARNING: This program has a syntax error and does not run, which means that we need to fix it!

RULE: You cannot combine different data types like strings and integers, or strings and floats.

  • Click Run and read the error message.
  • Debug the program so the teacher says the average test score. You must use str() around the avg variable.

We can only concatenate strings together, so we need to cast (convert) the average to a string by using str().

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)