STEP 2: Each function will store one dance move. Let's make a flip move!

Remember, the function name is the word between the Python keyword def and the parentheses().

  • Click LOGIC, go to and drag Define Function to the bottom of your program.
  • Name the function flip(), like this: def flip():
  • In GRAPHICS, drop Move Up INSIDE the function. It should be indented 4 spaces.

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)