We need to set up lists with the different types of litter that will appear on the screen.

  • Create a List of Strings called recycle. Include recyclables from the Earth Day section.
  • Create another List of Strings called garbage. Include items you can't recycle from the Earth Day section.
  • Create a variable called all_litter. Give it a value of both lists combined: recycle + garbage.

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)