0% found this document useful (0 votes)
52 views2 pages

A

The document uses the turtle module to draw a blue arrow shape filled with yellow. It then draws two filled black circles and additional geometric shapes including a filled cyan triangle. The turtle object is programmed to move, turn, fill areas, and change attributes like color and pensize to render the graphic.

Uploaded by

ADITYA NAVARE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

A

The document uses the turtle module to draw a blue arrow shape filled with yellow. It then draws two filled black circles and additional geometric shapes including a filled cyan triangle. The turtle object is programmed to move, turn, fill areas, and change attributes like color and pensize to render the graphic.

Uploaded by

ADITYA NAVARE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import turtle

tim = turtle.Turtle()
tim.pensize(2)
tim.shape('arrow')
tim.color('yellow')
tim.pencolor('blue')
tim.begin_fill()
tim.forward(400)
tim.left(90)
tim.forward(100)
tim.left(90)
tim.forward(400)
tim.left(90)
tim.forward(100)
tim.end_fill()
tim.color('black')
tim.pencolor('black')
tim.left(90)
tim.penup()
tim.forward(50)
tim.pendown()
tim.right(90)
tim.penup()
tim.forward(50)
tim.pendown()
tim.begin_fill()
tim.circle(50)
tim.end_fill()
tim.penup()
tim.backward(50)
tim.pendown()
tim.left(90)
tim.penup()
tim.forward(200)
tim.pendown()
tim.right(90)
tim.penup()
tim.forward(50)
tim.pendown()
tim.begin_fill()
tim.circle(50)
tim.end_fill()
tim.penup()
tim.backward(50)
tim.left(90)
tim.forward(150)
tim.left(90)
tim.forward(100)
tim.left(45)
tim.pendown()
tim.begin_fill()
tim.color('cyan')
tim.pencolor('blue')
tim.forward(150)
tim.backward(150)
tim.left(45)
tim.penup()
tim.forward(400)
tim.right(135)
tim.pendown()
tim.forward(150)
tim.right(45)
tim.forward(187.5)
tim.end_fill()

You might also like