Week 4 - Section 2 - Shape up

1. Chapter 12.1 - Shapes

Can you draw shapes using your edison and a marker?

For a first challenge try to draw a square.

You must remember to use a for loop and range command.

If you want a little hint look at the following code:

for i in range(4):
    Ed.PlayBeep()
    Ed.TimeWait(1, Ed.TIME_SECONDS)

So what code is needed do move drawing a square?

Do 4 times the following:

  • Move forward in some distance
  • Spin 90 degrees (to the left (or right))

Try to draw a triangle or a hexagon.

What if you want to draw a circle?