import turtle
turtle.fillcolor("brown")
turtle.begin_fill()
for i in range(2):
turtle.forward(10)
turtle.right(90)
turtle.forward(100)
turtle.up()
turtle.down()
turtle.end_fill()
turtle.fillcolor("blue")
turtle.forward(60)
turtle.forward(25)
turtle.left(90)
turtle.fillcolor("yellow")
turtle.done()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import turtle
turtle.fillcolor("brown")
turtle.begin_fill()
for i in range(2):
turtle.forward(10)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.up()
turtle.forward(10)
turtle.down()
turtle.end_fill()
turtle.fillcolor("blue")
turtle.begin_fill()
for i in range(2):
turtle.forward(60)
turtle.right(90)
turtle.forward(25)
turtle.right(90)
turtle.end_fill()
turtle.up()
turtle.right(90)
turtle.forward(25)
turtle.left(90)
turtle.down()
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(2):
turtle.forward(60)
turtle.right(90)
turtle.forward(25)
turtle.right(90)
turtle.end_fill()
turtle.done()