STEP 4: Let's create and name another function!

Give functions names related to what they do. This makes your code easier to read, use, and debug!

  • Go to and drop Define Function at the bottom of your program.
  • Change the name of the function from my_function() to bridge_scene().
  • Drop the Drawbridge background INSIDE the function. Make sure it is indented 4 spaces under the def line.

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)