i made a square inside a circle

This commit is contained in:
jfer
2026-02-04 11:18:14 -05:00
parent f67213d2f6
commit 0f5f4a5dce
3 changed files with 33 additions and 9 deletions

View File

@@ -8,15 +8,31 @@ from turtle import (
color,
)
def BC():
penup()
right(270)
forward(300)
right(90)
pendown()
for i in range (100):
right(3.6)
forward(30)
def eye():
for i in range(4):
right(90)
forward(30)
BC()
penup()
right(90)
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)
right(90)
forward(150)
right(180)
pendown()
eye()
input()