I changed the code from being a star to a circle of circles.

I was happy while doing this programming because I was learning new things while having fun. I also like how you can notice errors and fix them quickly in this lab.
This commit is contained in:
kdang
2025-09-16 09:47:48 -04:00
parent face43f425
commit 89502da77a
2 changed files with 154 additions and 10 deletions

View File

@@ -8,15 +8,152 @@ from turtle import (
color,
)
forward(100)
right(360 * 2 / 5)
forward(100)
right(360 * 2 / 5)
forward(100)
right(360 * 2 / 5)
forward(100)
right(360 * 2 / 5)
forward(100)
right(360 * 2 / 5)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(40)
forward(5)
right(360 * (2/5))
penup()
forward(50)
pendown()
input()

7
poetry.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
package = []
[metadata]
lock-version = "2.1"
python-versions = ">=3.10,<4.0"
content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"