STEP 20: Hm. Right now, the game's boring! The user will always get points, regardless of which image is clicked.

  • Let's add an astronaut that the user shouldn't click on.
  • In , drag Add Entry inside main() and above where you call play_game().
  • Then, inside the [ ], change "fish" to "astronaut1" and change 0 to -100.
  • Press Run and click on the Console. You should see "astronaut1" added to our dictionary!

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)