STEP 5: Let's change how many points we'll get for clicking on each of these sprites.

In Python, a dictionary is composed of key:value pairs. The key is to the left of the : and value is to the right.

  • For the first key:value pair where the key is "alien1", change the value from 4 to 10.
  • For the second key:value pair where the key is "alien2", change the value from 0 to 20.
  • Finally, for the last key:value pair where the key is "ufo", change the value from 2 to 5.

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)