WARNING: This program has a bug, or error. So let's debug it!

RULE: We can't open files that don't exist! If you open a file that Python doesn't recognize, you'll get an error.

  • "favorite_color.csv" doesn't exist. The file's name should be "favorite_colors.csv". (It's plural!)
  • Change the file we're opening to a file that exists.
  • Change Run to see if you fixed the program. When it's fixed, click Submit and Next.

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)