STEP 8: Let's now call our play_game function inside main().

  • In , drag Call with Parameters inside and to the bottom of main().
  • Change my_function() to play_game(). This function will start our game.
  • Finally, change my_var1 to my_display and my_var2 to my_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)