turtleArt | recursive polygon patterns

turtleArt is a great way to visualize recursion in action. Here is a simple challenge to generate a recursive pattern of regular polygons.

Here is example for pentagon:

tA recursion1 tA recursion1.1

Use recursion to generate a pattern for hexagon or a heptagon or any other shape which you like. Share your digital artifact in the thread below.

Reference:

https://runestone.academy/runestone/books/published/pythonds/Recursion/pythondsintro-VisualizingRecursion.html

4 Likes