Now, you are going to make a block that takes two inputs.

We want to create a draw polygon block that takes as inputs:

  1. a number of sides and
  2. the length of each side.
draw polygon () sides of length ()

Please complete the draw polygon block in the given starter code provided on the first page of this lab.

In the block, call these inputs sides and length. This exercise should be done with a partner, so introduce yourself to your neighbor and get started on the exercise together if you haven't already been engaing in paired programming.

You should remember from this lesson how to draw a regular polygon. How many degrees altogether? How many turns?

Be sure to test out your solution with several polygons, with different lengths and number of sides.