EXTEND: Let's create a new flag by adding or changing shapes and trying out new color combinations.

  1. Add one more new shape other than a rectangle.
  2. Use an .ask() command to see what color the user wants the shape to be.
  3. Set the color of your new shape using the user's input.


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)