0% found this document useful (0 votes)
3 views

Turtle 1

The document contains multiple Python scripts using the turtle graphics library to draw shapes. Each script creates a turtle object, sets its heading, and uses loops to draw squares or other shapes. The scripts vary in the direction and distance the turtle moves, demonstrating different drawing techniques.

Uploaded by

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

Turtle 1

The document contains multiple Python scripts using the turtle graphics library to draw shapes. Each script creates a turtle object, sets its heading, and uses loops to draw squares or other shapes. The scripts vary in the direction and distance the turtle moves, demonstrating different drawing techniques.

Uploaded by

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

2

import turtle
t1 = turtle.Turtle()
screen = turtle.Screen()
for i in range(4):
t1.forward(90)
t1.left(90)
t1.setheading(270)
for i in range(4):
t1.forward(90)
t1.left(90)
screen.mainloop()
3
import turtle
t1 = turtle.Turtle()
screen = turtle.Screen()
for i in range(4):
t1.forward(90)
t1.left(90)
t1.setheading(180)
for i in range(4):
t1.forward(90)
t1.left(90)
screen.mainloop()
4
import turtle
t1 = turtle.Turtle()
screen = turtle.Screen()
for i in range(4):
t1.forward(-90)
t1.left(-90)
t1.setheading(270)
for i in range(4):
t1.forward(90)
t1.left(90)
screen.mainloop()
5
import turtle
t1 = turtle.Turtle()
screen = turtle.Screen()
t1.setheading(270)
for i in range(4):
t1.forward(100)
t1.left(90)
t1.setheading(45)
for i in range(2):
t1.forward(71)
t1.left(-90)
screen.mainloop()
‫ב‬
71

You might also like