generated from mwc/lab_turtle
i made a square inside a circle
This commit is contained in:
34
drawing.py
34
drawing.py
@@ -8,15 +8,31 @@ from turtle import (
|
|||||||
color,
|
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)
|
forward(100)
|
||||||
right(360 * 2 / 5)
|
right(90)
|
||||||
forward(100)
|
forward(150)
|
||||||
right(360 * 2 / 5)
|
right(180)
|
||||||
forward(100)
|
pendown()
|
||||||
right(360 * 2 / 5)
|
eye()
|
||||||
forward(100)
|
|
||||||
right(360 * 2 / 5)
|
|
||||||
forward(100)
|
|
||||||
right(360 * 2 / 5)
|
|
||||||
|
|
||||||
input()
|
input()
|
||||||
|
|||||||
7
poetry.lock
generated
Normal file
7
poetry.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# This file is automatically @generated by Poetry 2.3.1 and should not be changed by hand.
|
||||||
|
package = []
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
lock-version = "2.1"
|
||||||
|
python-versions = ">=3.10,<4.0"
|
||||||
|
content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"
|
||||||
Reference in New Issue
Block a user