Practice Makes Perfect¶
The only way to get good at coding is to practice.
Start simple. While you can draw very complex diagrams using just Python Turtle commands, the code can be very tedious until you learn some more Python.
The following diagrams are ones that we recommend.
Mentors will be happy to answer your questions—if you run into any trouble, send a message in the Zoom chat!
Pentagon¶
Write a program to instruct the turtle
to draw a regular pentagon.
(A regular pentagon has 5 equal-length sides.)
Square Spiral¶
Write a program to instruct the turtle
to draw a spiralling square similar
the one shown above.
Five-pointed Star¶
Write a program to instruct the turtle
to draw a
perfect star with 5 points.
(Hint: Each point will need to form a 36 degree angle.)
Nested Squares¶
Write a program to instruct the turtle
to draw a series of nested squares
like those shown.
Be Creative¶
Try sketching a simple line-drawing on a graph paper. Decide the colors for the lines. Count off lengths, calculate angles (or measure with a protractor) and coordinates. Then begin coding! (Keep it simple or it will get tedious. But don’t dispair, we’ll soon learn standard “coding tricks” to simplify drawing of even complex drawings.)
Write a program to draw something of your own creation.