CHALLENGE #1: This code needs refactoring! Follow these guidelines to see if you can make it more efficient:

  • Use one Loop with Range.
  • Use only one pumpkin.set_size(1.1) and one pumpkin.move_up(5).
  • Use only one witch.set_size(.9) and one witch.move_down(5).
  • The witch should only say "Uh Oh" once!

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)