Batch 1
This commit is contained in:
46
homework.py
Normal file
46
homework.py
Normal file
@@ -0,0 +1,46 @@
|
||||
import turtle
|
||||
t = turtle
|
||||
t.color("red")
|
||||
t.fillcolor("red")
|
||||
t.bgcolor("black")
|
||||
t.shape("turtle")
|
||||
t.speed (57)
|
||||
t.lt(90)
|
||||
t.begin_fill()
|
||||
t.circle(300)
|
||||
t.end_fill()
|
||||
t.lt(90)
|
||||
t.fd(250)
|
||||
t.color("crimson")
|
||||
t.begin_fill()
|
||||
t.circle(50,67)
|
||||
t.rt(27)
|
||||
t.circle(34,23)
|
||||
t.rt(63)
|
||||
t.circle(56,12)
|
||||
t.rt(90)
|
||||
t.circle(76,56)
|
||||
t.end_fill()
|
||||
t.penup()
|
||||
t.fd(90)
|
||||
t.pendown()
|
||||
t.begin_fill()
|
||||
t.circle(78,36)
|
||||
t.end_fill()
|
||||
t.rt(180)
|
||||
p = 0
|
||||
while p < 12:
|
||||
t.fd(9)
|
||||
t.rt(9)
|
||||
t.penup()
|
||||
t.fd(2)
|
||||
t.pendown()
|
||||
t.fd(1)
|
||||
t.lt(1)
|
||||
p=p+1
|
||||
|
||||
|
||||
t.penup()
|
||||
t.fd (34)
|
||||
t.pendown()
|
||||
t.circle
|
||||
Reference in New Issue
Block a user