· web viewpossible turtle exercises: polygon: write a program to input the number of sides and...

6
Possible turtle exercises: 1. Polygon: Write a program to input the number of sides and draw the polygon with that number of sides. 2. Star: Write a program to input the number of points and draw the star with that number of points. Parallelograms: turtle_snowflake.py turtle_x_made_of_squares.py:

Upload: others

Post on 22-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Possible turtle exercises:

1. Polygon: Write a program to input the number of sides and draw the polygon with that number of sides.

2. Star: Write a program to input the number of points and draw the star with that number of points.

Parallelograms:

turtle_snowflake.py

turtle_x_made_of_squares.py:

Nested loops, functions

Nested loops. Octagons, but make it work for any polygon

Nested loops. 32 pentagons of length 70.

Let's draw some of these:

turtle_8_point_star_parallelograms.py:

Tom: 45 parallelograms

Tom: 200 lines Tom: 90 parallelograms. Nested loops