Previous Lecture Complete and continue  

  Project 1: Circle of Squares

207 comments
Chastity Lawson
https://repl.it/GCxQ/0
Krystal Mills
import turtle
turtle = turtle.Turtle()

def square(distance, turn):
turtle.forward(distance)
turtle.left(turn)
turtle.forward(distance)
turtle.left(turn)
turtle.forward(distance)
turtle.left(turn)
turtle.forward(distance)

for i in range(100):
square(100, 90)
turtle.left(3)
Everett Ross
import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
r = 90
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(3)

for i in range(1000000):
square(100, 90)
KARMIT LALANI
import turtle
#this part of code draws square
my_turtle=turtle.Turtle()
def square(n):
my_turtle.forward(n)
my_turtle.left(90)
my_turtle.forward(n)
my_turtle.left(90)
my_turtle.forward(n)
my_turtle.left(90)
my_turtle.forward(n)
for i in range(1):
square(100)

for i in range(200):
my_turtle.left(105)
square(100)

turtle.getscreen()._root.mainloop()
talal anwar
https://repl.it/GB52/0
but i want to know how set range to infinity... here i set it to 10000
Ivo Ivanov
https://repl.it/GBOT/4
Hampus Asplund
https://repl.it/GBE8/1
Derek Ocean
https://trinket.io/python/cb0ddbfc70
Marek Ondrejka
https://trinket.io/python/9f5780312c
Amal A A
import turtle

i=turtle.Turtle()

def square():
i.right(90)
i.forward(90)
i.right(90)
i.forward(90)
i.right(90)
i.forward(90)
i.right(90)
i.forward(90)
i.right(10)

for j in range(100):
square()
Naufal A J
https://trinket.io/python/e15f24c2ae
Elizabeth Paul
import turtle

turtle = turtle.Turtle()


def square(number, angle):
turtle.forward(number)
turtle.left(angle)
turtle.forward(number)
turtle.left(angle)
turtle.forward(number)
turtle.left(angle)
turtle.forward(number)

turtle.speed(5)

for i in range(60):
square(100, 90)
turtle.left(100)

turtle.done()
howa
import turtle

square = turtle.Turtle()

def cuad (length):
square.forward(length)
square.left(90)
square.forward(length)
square.left(90)
square.forward(length)
square.left(90)
square.forward(length)
square.left(80)

for x in range(100):
cuad(100)
Winknight James Jaen
https://repl.it/FxjY/0
Pravin Shinde
import turtle

my_turtle = turtle.Turtle()


def square(l , a):
my_turtle.forward(l)
my_turtle.right(a)
my_turtle.forward(l)
my_turtle.right(a)
my_turtle.forward(l)
my_turtle.right(a)
my_turtle.forward(l)
my_turtle.right(a)
my_turtle.right(5)



for i in range(60):
square(100 , 90)
brandon francisco
https://repl.it/FxSq/0
ritu uddin
import turtle

o=turtle.Turtle()

def square(a,b,c):
o.forward(a)
o.right(b)
o.forward(a)
o.right(b)
o.forward(a)
o.right(b)
o.forward(a)
o.right(c)

for i in range(20):
square(100,90,100)
Christian Smith
https://repl.it/FwOe/0
Katie Stotts
import turtle

my_turtle=turtle.Turtle()

my_turtle.pencolor("red")
my_turtle.speed(0)

def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)

for i in range(36):
square(100, 90)
my_turtle.right(10)


BOO-YAH!!
vishnupriya lella
import turtle

my_turtle = turtle.Turtle()

def square(length, angle):

my_turtle.forward(length)
for i in range(0,3):
my_turtle.left(angle)
my_turtle.forward(length)

for i in range(0,72):
square(100,90)
my_turtle.left(95)
collin johnson
import turtle

my_bike = turtle.Turtle()

def square(length, angle):
my_bike.forward(length)
my_bike.right(angle)
my_bike.forward(length)
my_bike.right(angle)
my_bike.forward(length)
my_bike.right(angle)
my_bike.forward(length)
my_bike.right(95)

for i in range(100):
square(100,90)

that was easy>>
Willib0

import turtle


my_turtle = turtle.Turtle ( )

my_turtle.speed (5)


def square(length,angle):
for i in range(4):
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.left(11)


def flag(Color1,Color2,Color3):
for i in range(5):
my_turtle.pencolor(Color1)
square(100,90)
for i in range(5):
my_turtle.pencolor(Color2)
square(100,90)
for i in range(5):
my_turtle.pencolor(Color3)
square(100,90)

for i in range(50):
my_turtle.left(90)
flag("BLACK","RED","YELLOW")
Resha Sakhalkar
import turtle

my_turtle = turtle.Turtle()


def square(length,angle,rotate):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.left(rotate)


for i in range(1000):
square(100,90,-100)
MILOS IVANOVIC
import turtle

my_turtle = turtle.Turtle()

def Square():

my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)



def Square2():
my_turtle.right(75)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)

Square()
for i in range(100):
Square2()

Christian Sampsell
import turtle
ttl = turtle.Turtle()

def square():
ttl.forward(100)
ttl.right(90)
ttl.forward(100)
ttl.right(90)
ttl.forward(100)
ttl.right(90)
ttl.forward(100)
ttl.right(140)

for loop in range(99999999):
square()
Ivan Saw
https://repl.it/FtX1/0
Ashfaaq Aboobaker
https://trinket.io/python/a44bb0e36f
Doreen Dodoo
https://repl.it/FsAG/0
Gayathri
import turtle

dulquer = turtle.Turtle()

def square(length,angle):
dulquer.forward(length)
dulquer.left(angle)
dulquer.forward(length)
dulquer.left(angle)
dulquer.forward(length)
dulquer.left(angle)
dulquer.forward(length)
dulquer.left(100)

for i in range(20):
square(100,90)
Mathias
https://repl.it/Fric/1
AngelRafa
import turtle
turtle = turtle
def square(n,angle):
turtle.color("orange")
turtle.forward(n)
turtle.right(angle)
turtle.forward(n)
turtle.right(angle)
turtle.forward(n)
turtle.right(angle)
turtle.forward(n)
def circle():
turtle.right(20)

circle()
for i in range(100):
square(100, 90)
circle()

Sean
https://repl.it/FpZO/4
Ngonidzashe
import turtle
ninja = turtle.Turtle()
ninja.speed(20)
def square():
ninja.forward(100)
ninja.left(90)
ninja.forward(100)
ninja.left(90)
ninja.forward(100)
ninja.left(90)
ninja.forward(100)
ninja.left(90)
for i in range(100):
square()
ninja.left(3.6)

turtle.done()
Jeremy mathew
import turtle
bob=turtle.Turtle()

def square(a,n):
bob.forward(a)
bob.right(n)
bob.forward(a)
bob.right(n)
bob.forward(a)
bob.right(n)
bob.forward(a)



for i in range(10000):


square(100,90)
bob.right(110)
zier mensch
import turtle

t = turtle.Turtle()

t.speed(0)
t.pensize(2)
t.pencolor("green")
def square(n,x):
t.forward(n)
t.right(x)
t.forward(n)
t.right(x)
t.forward(n)
t.right(x)
t.forward(n)
t.right(x)
for i in range(180):
square(100,90)
t.right(2)
turtle.done

t.pencolor("blue")
for i in range(150):
square(195,90)
t.right(5)

t.pencolor("yellow")
for i in range(360):
square(75,90)
t.right(1)
t.pendown()

t.pencolor("black")
for i in range(360):
square(20,90)
t.right(1)
t.pendown()

turtle.done()
Sean
"Eye of the Kraken"

https://repl.it/FpZO/3
Tornike
import turtle

p=turtle.Turtle()
p.pencolor("blue")
p.pensize(1)
p.speed(0)
def Project_1(lenght,angle, rotate):
p.forward(lenght)
p.right(angle)
p.forward(lenght)
p.right(angle)
p.forward(lenght)
p.right(angle)
p.forward(lenght)
p.right(rotate)

for Project in range(100):
Project_1(200,90,101)

p.pencolor("red")
for Project in range(100):
Project_1(200,90,101)

p.pencolor("green")
for Project in range(100):
Project_1(200,90,101)

p.pencolor("yellow")
for Project in range(100):
Project_1(200,90,101)

p.pencolor("red")
for Project in range(100):
Project_1(200,90,101)









Ivan K.
https://repl.it/Fo3p/1
Stephen Kane
import turtle

arrow = turtle.Turtle()
def square(length, angle):
arrow.forward(length)
arrow.left(angle)
def spiral():
for i in range(4):
square(35, 90)
arrow.right(10)
for i in range(4):
square(35, 90)
for i in range(50):
spiral()
Adarsh Singh
import turtle
go = turtle.Turtle()
def square():
go.forward(100)
go.left(90)
go.forward(100)
go.left(90)
go.forward(100)
go.left(90)
go.forward(100)
go.left(90)

while True:
square()
go.left(20)
sami cheaib
import turtle

sami=turtle.Turtle()

def square(length, angle):
sami.forward(length)
sami.right(angle)
sami.forward(length)
sami.right(angle)
sami.forward(length)
sami.right(80)
sami.forward(length)
sami.right(angle)
sami.pencolor("blue")




for i in range(100):
square(100,90)
كريس
#I made a circle but not in the same manner, took a minute and a couple tries.

import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)


for i in range(6):
square(50, 15)
Louis Shrestha
import turtle

My_turtle = turtle.Turtle()

def Square(lenght, angle):

My_turtle.forward(lenght)
My_turtle.left(angle)
My_turtle.forward(lenght)
My_turtle.left(angle)
My_turtle.forward(lenght)
My_turtle.left(angle)
My_turtle.forward(lenght)
My_turtle.left(100)


for i in range(50):
Square(100, 90)
Audrey Boucher
import turtle

t = turtle.Turtle()

def square(lenght, angle):
for i in range(4):
t.forward(lenght)
t.right(angle)

t.speed(10)


for i in range(90):
square(100, 90)
t.right(4)
Joseph Victor Swedlund
import turtle

James = turtle.Turtle()
James.speed(100)

for x in range(120):
for i in range(4):
James.forward(100)
James.left(90)

James.left(3)

#Pretty Neat!
Michael Daniels
#draw a circle using squares
import turtle

my_turtle = turtle.Turtle()

#give the function, square, context
def square(length, angle):

my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(100)

for i in range(100):
square(50,90)
András Takaró
Heres my version!
import turtle

bocni = turtle.Turtle()

def square():
for i in range(4):
bocni.forward(100)
bocni.left(90)

for i in range(100):
square()
bocni.left(5)
cooger
import turtle


import turtle


import turtle
fredy=turtle.Turtle()

def square(length, angle):
fredy.forward(length)
fredy.right(angle)
fredy.forward(length)
fredy.right(angle)
fredy.forward(length)
fredy.right(angle)
fredy.forward(length)
fredy.right(100)

for i in range (100):
square(90, 90)
Brett Reppert
import turtle#preloaded directory for special code functions

BrettT=turtle.Turtle() #turtle.Turtle is the variable definition that gets stored in variable name

#define the Function
def square(leng, degr): #(: completes function definition)
BrettT.forward(leng)
BrettT.right(degr)
BrettT.forward(leng)
BrettT.right(degr)
BrettT.forward(leng)
BrettT.right(degr)
BrettT.forward(leng)
BrettT.right(100)

for i in range(100):

square(100,90)#call function

Max Litja
https://repl.it/FhjC
Yash Rastogi
https://repl.it/FgvU/6
Yuchong Luan
import turtle

ni = turtle.Turtle()

def square(length,angle):
ni.forward(length)
ni.right(angle)
ni.forward(length)
ni.right(angle)
ni.forward(length)
ni.right(angle)
ni.forward(length)

ni.right(100)

for i in range(50):
square(90,90)
Daniel Powell
import turtle

tut = turtle.Turtle()
tut.speed(100)
def mk_sq():
for i in range(4):
tut.forward(100)
tut.right(90)
tut.right(10)
#mk_sq()

def mk_cir():
for i in range(36):
mk_sq()
mk_cir()
Aditi Deepak
import turtle
my_turtle= turtle.Turtle()

def square(length , angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
for i in range(50):
square(100,90)
my_turtle.right(i+3)
Isheanesu Chikuvanyanga
import turtle
sill = turtle.Turtle()
def squares(length, angle):
sill.forward(length)
sill.left(angle)
sill.forward(length)
sill.left(angle)
sill.forward(length)
sill.left(angle)
sill.forward(length)
sill.left(5)

for i in range(100):
i=0
squares(50, 90)

turtle.done()
Kanad patel
import turtle
a=turtle.Turtle()
def square(length, angle):
a.speed(10000)
a.forward(length)
a.left(angle)
a.forward(length)
a.left(angle)
a.forward(length)
a.left(angle)
a.forward(length)
a.right(277)
for i in range(51):
square(100,90)
Kanad patel
import turtle
a=turtle.Turtle()
def square(length, angle):
a.forward(length)
a.left(angle)
a.forward(length)
a.left(angle)
a.forward(length)
a.left(angle)
a.forward(length)
a.right(320)
for i in range(40):
square(100,90)
Daniel Miller
larry is king!!

import turtle

larry = turtle.Turtle()

def square():
larry.forward(100)
larry.right(90)
larry.forward(100)
larry.right(90)
larry.forward(100)
larry.right(90)
larry.forward(100)
larry.right(65)



for i in range(30):
square()
Ivan Buglosa
import turtle
myTurtle = turtle.Turtle()


n = 90
angleB = 10

def square(length, angle):
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(n)

def squareA(length, angle):
myTurtle.right(angle)
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(n)
myTurtle.forward(length)
myTurtle.right(100)

for i in range(30):
square(100,90)
squareA(100,10)
Henry Lam
import turtle
my_turtle = turtle.Turtle()


def square(length, angle):

my_turtle.forward(length)
my_turtle.left(angle)


for loop in range(100):
square(100, 95)
Caddy Khaw
import turtle

smart = turtle.Turtle()

def square(l, a):
smart.forward(l)
smart.right(a)
smart.forward(l)
smart.right(a)
smart.forward(l)
smart.right(a)
smart.forward(l)
smart.right(a)

for spiralsquare in range(180):
square(100,90)
smart.right(5)
Joshua Andrei Castillo
I've done it!. Thanks
Kai Peters
import turtle

t = turtle.Turtle()

def square(length, angle):
t.forward(length)
t.left(angle)
t.forward(length)
t.left(angle)
t.forward(length)
t.left(angle)
t.forward(length)
t.left(105)

for i in range(24):
square(100, 90)
Trey keith McCutcheon
import turtle
t = turtle.Turtle()




def square(length, angle, a2):
t.speed(100000)
t.forward(length)
t.right(angle)
t.forward(length)
t.right(angle)
t.forward(length)
t.right(angle)
t.forward(length)
t.right(a2)
for i in range(37):
square(200, 90, 100)
this makes a perfect circle that stops at the right square
yuba raj Siwakoti
import turtle
my_turtle = turtle.Turtle()
my_turtle.speed(0)
my_turtle.color('blue', 'red')
def square(length,angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle+2)


for i in range(180):
square(100,90)
Prince
https://repl.it/F7fv/1
It's my circle of squares......
Hope you'll will like it......
Halil İbrahim Çetin
import turtle

taforces=turtle.Turtle()

taforces.speed(10000)

def square(lenght,angel):
for i in range(4):
taforces.forward(lenght)
taforces.right(angel)

for i in range(120):
square(100,90)
taforces.right(3)

#How cool is that?
ansari
import turtle

bob=turtle.Turtle()
bob.color("red","green")

def square(length, angle):
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.left(10)

for i in range(36):
square(100,90)
Creatron Omega
import turtle

turtle = turtle.Turtle()

#square function
def square(length, angle):

turtle.forward(length)
turtle.left(angle)
turtle.forward(length)
turtle.left(angle)
turtle.forward(length)
turtle.left(angle)
turtle.forward(length)


for i in range(1000):
square(75, 90)
turtle.right(75)
#simple but I'm proud of it ;)! (3mins! top chrono!)
Adam Bowen
my_turtle = turtle.Turtle()

#defines turtles speed
my_turtle.speed(100)

#defines square function

def square(length, angle):

my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.right(10)

#defines number of loops
for i in range(20):
square(100, 90)
André du Rietz
I made something that looks like a optical illusion :D

check it out!
https://repl.it/F6BM/2
Simon Neirynck
import turtle

my_turtle = turtle.Turtle()


def square(lenght, angle, angle2):

my_turtle.color('red')
my_turtle.forward(lenght)
my_turtle.left(angle)
my_turtle.color('red')
my_turtle.forward(lenght)
my_turtle.left(angle)
my_turtle.color('red')
my_turtle.forward(lenght)
my_turtle.left(angle)
my_turtle.color('red')
my_turtle.forward(lenght)
my_turtle.left(angle2)

for loop in range(45):
square(150, 90, 20)



(Pretty sure it's not the perfect way, but it worked out :), rlly loving this so far)
Luftwafte II
Are you calling the function in the for loop?
Amir Hossein Asghari
https://trinket.io/python/e7d6162c6c
gavin bowen
https://repl.it/F51v/0
KhalidBinAwwad
https://repl.it/F5Jx/0

Did it ! Its very simple but it needs a little bit of thinking lol
Akansha
https://repl.it/F4wJ/0
Premanshu Pareek
The project code for circle of squares:

import turtle

turt = turtle.Turtle()

# Setting speed for turtle
turt.speed(100)

# Defining function circle_of_square
def circle_of_square(length,angle):
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.right(5)

# Looping the function
for i in range(75):
circle_of_square(100,90) # Calling the function circle_of_square

Cyril
import turtle

t=turtle.Turtle()

def square(length, angle):
t.forward(length)
t.right(angle)
t.forward(length)
t.right(angle)
t.forward(length)
t.right(angle)
t.forward(length)
t.right(angle)
t.right(10)

for sqr in range(40):
square (100,90)
Kevin C
import turtle
my_turtle = turtle.Turtle()
x = 90
y = 90
def square(length, angle):
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.left(10)
for i in range(50):
square(90,90)
my_turtle.color("gold")
Kevin C
import turtle
my_turtle = turtle.Turtle()
x = 80
y = 100
def square(length, angle):
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.forward(x)
my_turtle.left(y)
my_turtle.left(10)
for i in range(50):
square(80,100)
Denis
import turtle

my_turtle = turtle.Turtle()

def circle(length, angle):

my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(110)


for i in range(100):
circle(50,90)
Saad Ahmad Khan
import turtle

my_turtle = turtle.Turtle()
my_turtle.speed(100)
my_turtle.color("green")
def Square(length, angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)

for loop in range(50):
Square(100, 90)
my_turtle.right(10)



i am wondering how to stop my loop automatically when my circle complete.
Barnes
Deesgusteen u shit guy, 1v1 me on club penguin ill fuck you up fire jutsu style
Modasir Khajazada
import turtle

my_turtle = turtle.Turtle()


def square(length, angle):

my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.right(8)


for i in range(90):
square(50, 90)
zakarya abdulbary
import turtle


zi = turtle.Turtle()


def zako(z,h,d):
zi.forward(z)
zi.right(h)
zi.forward(z)
zi.right(h)
zi.forward(z)
zi.right(h)
zi.forward(z)
zi.right(d)



for z in range(45):
zako(100,90,80)


this is how ive done it
rahul raj mishra
see this

https://repl.it/FXiR/2

thank you
SimeonBikov
import turtle

my_turtle = turtle.Turtle()

def square(lenght, angle):
my_turtle = turtle.forward(lenght)
my_turtle = turtle.right(angle)
my_turtle = turtle.forward(lenght)
my_turtle = turtle.right(angle)
my_turtle = turtle.forward(lenght)
my_turtle = turtle.right(angle)
my_turtle = turtle.forward(lenght)
my_turtle = turtle.right(angle)

def turn(angle):
my_turtle = turtle.right(angle)

for i in range(72):
square(100, 90)
turn(5)
Benjamin Hansen
import turtle

bob = turtle.Turtle()

def square(length, angle):
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.forward(length)
bob.left(angle)
bob.left(10)
for i in range(100):
square(100, 90)
Ronaldo Chavez
import turtle

turt = turtle.Turtle()

def square(length, angle):
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.left(10)

for i in range(500):
square(100, 90)

Jamie Fore
import turtle
my_turtle = turtle.Turtle()

def square(length, angle):
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.left(10)

for c in range(50):
square(70,90)
Arian Zahir
https://repl.it/FUI6/0
Pottreces
import turtle

turtle = turtle.Turtle()

def sqaure(length, angle):
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)

for i in range(100):
turtle.right(20)
sqaure(50, 90)
Diego Jimenez
https://repl.it/FTJp/0
poonam ahir
import turtle
hi = turtle.Turtle()

def sq(length, angle):
hi.forward(length)
hi.right(angle)
hi.forward(length)
hi.right(angle)
hi.forward(length)
hi.right(angle)
hi.forward(length)

for i in range(200):
hi.right(100)
sq(100, 90)
Romario Coley
https://repl.it/FS1h/0
Imaneh Ameli
https://repl.it/FSFA/0
Thomas Loving
import turtle


my_turtle = turtle.Turtle()
my_turtle.speed(0)

def square(length, angle):
for i in range (4)
my_turtle.forward(length)
my_turtle.right(angle)

for i in range (100)
square(100, 90)
my_turtle.right(10)
Ryan
I'm getting the error:
Traceback (most recent call last):
File "python", line 3, in
_tkinter.TclError: no display name and no $DISPLAY environment variable

A few people seem to be getting the same error. So here's my code -

import turtle

my_turtle=turtle.Turtle()

def square(length, angle):
my_turtle.speed(100)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.left(5)

for draw in range(80):
square(100,90)
Vishwas More
import turtle

project=turtle.Turtle()

def square():
project.forward(90)
project.left(90)
project.forward(90)
project.left(90)
project.forward(90)
project.left(90)
project.forward(90)
project.left(80)

for i in range(36):
square()

Rakib Mozahid
import turtle

my_turtle = turtle.Turtle()

def square():
my_turtle.forward(50)
my_turtle.right(90)
my_turtle.forward(50)
my_turtle.right(90)
my_turtle.forward(50)
my_turtle.right(90)
my_turtle.forward(50)


for i in range(36):
my_turtle.right(100)
square()
#is it okay?
Alexandra Renee
Need help!

My code for this executes perfectly in Python, but when I copy and paste it into repl.it I get this message:

Traceback (most recent call last):
File "python", line 2, in
_tkinter.TclError: no display name and no $DISPLAY environment variable
sawan kumar
This is only for windows....!!!!!!! How to change the color of the circle??

import turtle
turtle.speed(0)

def square(s,n):
for l in range(4):
turtle.forward(s)
turtle.right(n)
turtle.backward(s)
turtle.left(n)
turtle.backward(s)
turtle.right(n)
turtle.forward(s)

for i in range(23):
square(100,270)


Sameer
https://repl.it/FOhy
wenting zhang
https://repl.it/FOER/0
Gareth Warner
https://repl.it/FNS9/0
Bilal fiaz
https://repl.it/FM0s/1
Arjun Rao
import turtle
my_turtle=turtle.Turtle()
def square():
for i in range(4):
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.speed(10000)
my_turtle.color('orange')

for i in range (100):
square()
my_turtle.right(10)

my_turtle.left(193.456)


mohandes Grilj
import turtle

t = turtle.Turtle()


def squares(lenght, angel):

t.forward(lenght)
t.left(angel)
t.forward(lenght)
t.left(angel)
t.forward(lenght)
t.left(angel)
t.forward(lenght)
t.left(angel)
t.left(angel/9)

for i in range(10000):
squares(100,90)



print(squares())
Mast Ram Sharma
https://repl.it/FJ66/4
Karlo Turk
import turtle

my_turtle = turtle.Turtle()

def square(lenght, angle):


my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)


for LE in range(20000):
square(50, 90)
my_turtle.right(1)
turtle.speed(0)
I know it's not right, I basically did it so It turns for 1 degree, actually looks cool
aron bleier
import turtle

a = turtle.Turtle()

def square(n,m,l):
a.forward(n)
a.right(m)
a.forward(n)
a.right(m)
a.forward(n)
a.right(m)
a.forward(n)
a.right(l)
for i in range(36):
square(100,90,100)
Christopher Vargas
https://repl.it/FJhM/0
Aman Tyagi
https://repl.it/FJ66/0
Andrej Radojcic
YAY I DIDI IT!
Praneeth
import turtle
a = turtle.Turtle()
def square():
a.forward(50)
a.right(90)
a.forward(50)
a.right(90)
a.forward(50)
a.right(90)
a.forward(50)

for i in range(30):
square()
a.right(80)


Vineet Yadav
import turtle
t=turtle.Turtle()
def circleofsquares(distance,angle,turningangle):
for j in range(1000):
for i in range(4):
t.forward(distance)
t.left(angle)
t.left(turningangle)
circleofsquares(100,90,10)

repl.it gave me errors
ajay
import turtle


import turtle

turtle=turtle.Turtle()
def fun(length,angle):
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)
turtle.right(angle)
turtle.forward(length)
turtle.right(101)

for i in range(10000):
fun(100,90)
Hithaishy B
#circle of squares
import turtle
my_turtle = turtle.Turtle()

def square():
my_turtle.forward(75)
my_turtle.left(90)
my_turtle.forward(75)
my_turtle.left(90)
my_turtle.forward(75)
my_turtle.left(90)
my_turtle.forward(75)
my_turtle.left(75)

for i in range(25):
square()
Anas Munir
import turtle
logan=turtle.Turtle()
def circle_of_sq(length,angle,new_angle):
logan.forward(length)
logan.right(angle)
logan.forward(length)
logan.right(angle)
logan.forward(length)
logan.right(angle)
logan.forward(length)
logan.right(new_angle)

for i in range(100):
circle_of_sq(100,90,100)
Jaypee Genobe
https://repl.it/FGkw/0
Richard Franck
https://repl.it/FGgx/0
abdul hussain
import turtle

good = turtle.Turtle()
good.speed(10)

def star(length, angle):
for i in range(4):
good.forward(length)
good.left(angle)

for y in range(360):
star(100,90)
good.left(1)
abdul hussain
import turtle

good = turtle.Turtle()
good.speed(5)

def star(length, angle):
for i in range(4):
good.forward(length)
good.left(angle)

for y in range(360):
star(100,90)
good.left(15)
Brayan Matos Ruiz
import turtle

my_turtle = turtle.Turtle()

def square():
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.left(25)

for squares in range(100):
square()
Deviprasad Ojha
import turtle
d_trtl = turtle.Turtle()
d_trtl.speed(0)

def sqr(x,y):
for i in range(4):
d_trtl.forward(x)
d_trtl.right(y)

for i in range(100):
d_trtl.color('yellow')
sqr(200,90)
d_trtl.right(11)

for i in range(100):
d_trtl.color('red')
sqr(200,90)
d_trtl.right(11)

for i in range(100):
d_trtl.color('blue')
sqr(200,90)
d_trtl.right(11)

Seth Satterwhite
import turtle
frank = turtle.Turtle()

def square(length, angle):
frank.forward(length)
frank.right(angle)
frank.forward(length)
frank.right(angle)
frank.forward(length)
frank.right(angle)
frank.forward(length)
for i in range(10000):
square(100, 90)
frank.right(80)
Richard Harding
import turtle
my_turtle = turtle.Turtle()
def square(length, angle):
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
for i in range(500):
square(50,90)
square(0,1)
Nathan Swedlund
import turtle
turt = turtle.Turtle()
def HEX_FUNC(length, angle, angle2):
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.forward(length)
turt.left(angle)
turt.left(angle2)
turt.speed(500)
for i in range(1000):
HEX_FUNC(30, 45, 10)
Jonas Abarham
https://repl.it/FDYI/0
Ashutosh Shukla
import turtle

a=turtle.Turtle()
def square(length,angle):
a.forward(length)
a.right(angle)
a.forward(length)
a.right(angle)
a.forward(length)
a.right(angle)
a.forward(length)

for i in range(100):
square(100,90)
a.right(1)
Ali
3 circles of squares
https://repl.it/EyXR/1
kenneth R. Aponte Mendez
it was so simple but so cool to watch!!!
here is mine:

import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)



for i in range(1000):
square(40, 90)
my_turtle.right(20)
square(40, 90)
Mate Aditya Anil
import turtle
my_turtle = turtle.Turtle()
my_turtle.speed(0)
def square(Length,angle):
my_turtle.forward(Length)
my_turtle.right(angle)
my_turtle.forward(Length)
my_turtle.right(angle)
my_turtle.forward(Length)
my_turtle.right(angle)
my_turtle.forward(Length)
my_turtle.right(11)
for i in range(1000000000):
square(100,90)

Abdulla Omaruddin
import turtle

my_turtle = turtle.Turtle ()

def square (length, angle):
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)
square (100, 90)

def spinning (length, angle):
my_turtle.left (60)
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)
my_turtle.left (angle)
my_turtle.forward (length)

for s in range (30):
spinning (100, 90)
Gianlucca

https://repl.it/FDCz/0
Marco
https://repl.it/FDCS/0
Deviprasad Ojha
import turtle

d_trtl=turtle.Turtle()

def sqr(m,n):
d_trtl.forward(m)
d_trtl.right(n)
d_trtl.forward(m)
d_trtl.right(n)
d_trtl.forward(m)
d_trtl.right(n)
d_trtl.forward(m)


for i in range(1000):
sqr(200,90)
d_trtl.right(85)
Zsolt Bisztray
https://repl.it/FCen/0
Adex Elizy
I did it))))

import turtle

ggo = turtle.Turtle()

def square(length, angle):
ggo.forward(length)
ggo.left(angle)
ggo.forward(length)
ggo.left(angle)
ggo.forward(length)
ggo.left(angle)
ggo.forward(length)
ggo.left(100)

for i in range(60):
square(50, 90)
Mitchell Gallant
https://repl.it/FBwX/0
Erika
Mine came out looking like a circle inside a circle made out of squares. I'll see in the next video what I needed to do to keep the edges from becoming a circle.

import turtle

bob = turtle.Turtle()
def box():

bob.forward(200)
bob.right(90)
bob.forward(200)
bob.right(90)
bob.forward(200)
bob.right(90)
bob.forward(200)
def spinning():
box()
bob.right(95)
box()
bob.right(95)
box()
bob.right(95)

for i in range (25):
spinning()
Manny Garcia
https://repl.it/EyKG/0
Tony Gonzalez
https://repl.it/languages/python_turtle

^ you had to go here to use the turtle format.
Tony Gonzalez
https://repl.it/FAvi/0
Mohammed Alfathali
https://trinket.io/python/bdbb1140a0
Miroslav
https://repl.it/FAa9/0
Phuc Le
https://repl.it/FA1m/0
Sachin Dindor
https://repl.it/FA17/0
Jordan
https://repl.it/FADG/0

I think I am excelling in your class, this took me five minutes and i even sped it up. Thanks and keep up the good work XD
ashish dagar
import turtle
a=turtle.Turtle()

def doc(length,angle):
a.forward(length)
a.right(angle)
a.forward(length)
a.right(angle)
a.forward(length)
a.right(angle)
a.forward(length)
for i in range (50):
doc(90,90)
a.right(102)

i did it
Roberto Torres
https://trinket.io/python/0c63c1f3c6
Ereatara Kokiri
this is my square lol
for ere in range(10):
square(50,90)
my_turtle.right(10)
Askild
import turtle

t = turtle.Turtle()
t.speed(100)
for i in range(36):
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.right(10)

turtle.done()

to make the perfect circle, if u are struggeling
Thomas Liebig
import turtle

my_turtle = turtle.Turtle()

def square():

my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(80)



for i in range(40):
square()
karthik sundar
try this one
every time you run it you will get a new colored design

import turtle
import random
abc = turtle.Turtle()
defg = random.randint(0,225)
hij = random.randint(0,150)
klm = random.randint(0,225)

def drawsquare():
abc.pencolor(defg,hij,klm)
abc.fillcolor([hij,klm,defg],[klm,defg,hij])

abc.forward(100)
abc.right(90)
abc.forward(100)
abc.right(90)
abc.forward(100)
abc.right(90)
abc.forward(100)



for i in range(225):

drawsquare()


abc.right(100)

Wong Xien Hean
https://repl.it/EyjJ/0

Took Me 10 Min. Lol
Justas Norinkevicius
import turtle

asdf = turtle.Turtle()

def square(lenght,angle):
for i in range(4):
asdf.forward(lenght)
asdf.right(angle)

for s in range(6969):
square(100,90)
asdf.right(11)
Jordan Hansen
https://repl.it/EyUJ/0
gabbie feller
https://repl.it/EyD3/1
Sumit
import turtle

sumit=turtle.Turtle()
def square(angle):

sumit.forward(100)
sumit.left(90)
sumit.forward(100)
sumit.left(90)
sumit.forward(100)
sumit.left(90)
sumit.forward(100)
sumit.left(90)
sumit.right(angle)
for i in range(100):
square(25)
frederik larsen
import turtle
l = turtle.Turtle()

def X(F, A):
for i in range(4):
l.forward(F)
l.left(A)

#======================

for I in range(100):
X(50, 90)
l.right(10)
Hampus
import turtle

my_turtle = turtle.Turtle()

def circle(lenght, angle):
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)


for i in range(100):
circle(200, 90)
my_turtle.right(10)
Luis Alvarez Feliciano
import turtle

my_turtle = turtle.Turtle()

def square (length, angle, angle2):
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle2)

for i in range(100):
square(100, 90, 95)
#wujuuuuu xD
nagi reddy
check mine wat do u say?

https://trinket.io/python/97573170c7
Nasser
import turtle

bob = turtle.Turtle()

def square(Length, angle):

bob.forward(Length)
bob.left(angle)
bob.forward(Length)
bob.left(angle)
bob.forward(Length)
bob.left(angle)
bob.forward(Length)
bob.left(21)
bob.forward(50)

for i in range(500):
square(50, 45)

RUCHI VADSOLA
import turtle

my_turtle=turtle.Turtle()

def square():
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)

square()

for i in range(1000):
my_turtle.right(100)
square()
Bilal Haroon
https://trinket.io/python/bc8a407b86
Hatim Elsadig Elamin Elhag
https://repl.it/EwkQ/0
Louie Jay D. NIngasca
#whooo, this is fun,
#is there a limit in turtle speed? I cant make it even faster that this

import turtle

louie = turtle.Turtle()


def square(Length, Angle1, Angle2):

louie.forward(Length)
louie.left(Angle1)
louie.forward(Length)
louie.left(Angle1)
louie.forward(Length)
louie.left(Angle1)
louie.forward(Length)
louie.left(Angle2)

def circle():
for i in range (25):
louie.speed(100000000000)
louie.pencolor ("blue")
square(100,90,95)
for i in range (25):
louie.speed(100000000000)
louie.pencolor ("red")
square(75,90,95)
for i in range (25):
louie.speed(100000000000)
louie.pencolor ("yellow")
square(50,90,95)

for n in range(50):
circle()
sonam chophel
🐢.speed(0)
sonam chophel
import turtle
t=turtle.Turtle()
def square():
t.speed(10)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(100)
for i in range(36):
square()
Nahian Eshan
https://repl.it/EwaV/0
Dina Abdallah
for i in range(50):
square(60,89)
It's really pretty
Victoria Reynoso
import turtle
my_turtle = turtle.Turtle()
def square (length,angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)

square (100,90)
my_turtle.right(100)

for i in range(200):
square (100,90)
my_turtle.right(100)
Rodrigo Pedetti
https://trinket.io/python/c51cc88c75
Xerxes
#circle project

import turtle
t = turtle.Turtle ()

def square(angle):
t.speed(100)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(angle)

for i in range(100):
square(100)


Robert Spina
import turtle

circle = turtle.Turtle()

def square(length, angle):
circle.forward(length)
circle.right(angle)
circle.forward(length)
circle.right(angle)
circle.forward(length)
circle.right(angle)
circle.forward(length)

for i in range(50):
square(60, 90)
circle.right(100)
zihad

https://trinket.io/python/1e0cc45351
St
import turtle

my_turtle = turtle.Turtle()

a = 95

def square(lenght, nic, a):
my_turtle.forward(lenght)

my_turtle.right(nic)

my_turtle.forward(lenght)

my_turtle.right(nic)

my_turtle.forward(lenght)

my_turtle.right(nic)

my_turtle.forward(lenght)

my_turtle.left(a)


for i in range(10):
square(100, 90, 95)
square(100, 90, 95)
square(100, 90, 95)
square(100, 90, 95)
TACO
https://repl.it/Es7j/0
Cooper Mann
https://www.repl.it/EsoP/0
Shweta Ikhe
import turtle

abc = turtle.Turtle()

def square(length, angle):
abc.forward(length)
abc.right(angle)
abc.forward(length)
abc.right(angle)
abc.forward(length)
abc.right(angle)
abc.forward(length)

for i in range(100):
square(50, 90)
abc.right(100)
Martin Lustig
My solution:
https://repl.it/Es7j/0

You make it really easy to understand - thank you!!
Alexander Helms
import turtle

x = turtle.Turtle()

d = x.right
a = x.left
w = x.forward


def square(angle,agle,leng):
w(leng)
a(agle)
w(leng)
a(agle)
w(leng)
a(agle)
w(leng)
a(angle)

for i in range(45):
square(82,90,100)
i
conrad kay
import turtle
my_turtle = turtle.Turtle()


n=50
a=95
for i in range(20):
my_turtle.forward(n)
my_turtle.left(a)
Adam Bessisso
https://trinket.io/python/54633e1f1b
Nick Fuller
Here's what I did for the project. I did the angle 14 so the squares wouldn't repeat since 360(full revolution) isn't divisible cleanly by 14.

import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)

# square(20, 90)

for circleofsquares in range(400):
square(100, 90)
my_turtle.right(14)

circleofsquares()
Moni AlFlahi
https://trinket.io/python/95c3c7bc61

hope its good enugh
Anidhito Irmandharu
import turtle

Avant = turtle.Turtle()

def square(length ,turn):
Avant.forward(length)
Avant.right(turn)
Avant.forward(length)
Avant.right(turn)
Avant.forward(length)
Avant.right(turn)
Avant.forward(length)
Avant.right(turn)

# This 1/4 Of The Flower
# for flowersquare in range(7):
# square(100 ,90)
# Avant.right(15)

# After that , each only require 6 loop
# so there for it require ( 7 + 6 + 6 + 6 = 25 )

for flowersquare in range(25):
square(100 ,90)
Avant.right(15)


i wonder why it is 25 , instead of 24 to create a flower
prudhvi kandregula
import turtle
my_dog=turtle.Turtle()

def circlefromsqares(length,angle):
my_dog.right(100)
my_dog.forward(length)
my_dog.right(angle)
my_dog.forward(length)
my_dog.right(angle)
my_dog.forward(length)
my_dog.right(angle)
my_dog.forward(length)
circlefromsqares(100,90)
for i in range(100):
circlefromsqares(100,90)
Abboud Mahmi
import turtle

carl = turtle.Turtle()

def circle():
for i in range(4):
carl.forward(100)
carl.right(90)
carl.right(0+5)

for x in range(72):
circle()
Harshil Pasnani
Amazing we can change angle after completing 1 rotation on cicle by squares.
https://repl.it/Em7Z/0
pls check and reply
Austyn
https://repl.it/Em30/1
Kit Sum Pang
https://repl.it/ElkK/1
Ze At
import turtle
my_turtle = turtle.Turtle()

def square(lenght,angle):
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)
my_turtle.right(angle)
my_turtle.forward(lenght)

for i in range(1000):
square(100,90)
my_turtle.left(89)
Gary Lynch
Resubmitting, saw one of your users using speed() so I tried it and made the turning angle less

import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)


for i in range(1000):
my_turtle.speed(100)
square (100,90)
my_turtle.right(3)
Gary Lynch
import turtle

my_turtle = turtle.Turtle()

def square(length, angle):
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)
my_turtle.forward(length)
my_turtle.right(angle)


for i in range(100):
square (100,90)
my_turtle.right(10)

João
What do you think of this circle of squares:

import turtle

t = turtle.Turtle()
t.speed(0)

def square(x,y):
t.forward(x)
t.right(y)
t.forward(x)
t.right(y)
t.forward(x)
t.right(y)
t.forward(x)

for inclination in range(100000):
square(100,90)
square(0,90+1)
Rafeh Qazi
João would you mind putting this into trinket.io and sharing a link with me!?
Elian Barajas
https://trinket.io/python/dfbcfa1f81

Here you go
Charles Lungu
man you are great hey...good work.
Elian Barajas
import turtle


circle = turtle.Turtle()


def cos(length, angle, f_angle):
circle.forward(length)
circle.right(angle)
circle.forward(length)
circle.right(angle)
circle.forward(length)
circle.right(angle)
circle.forward(length)
circle.right(f_angle)

for cir in range(100):
cos(50, 90, 5)
Charles Lungu
import turtle


c=turtle.Turtle()
c.speed(0)

def square(Y,X):
c.forward(Y)
c.left(X)
c.forward(Y)
c.left(X)
c.forward(Y)
c.left(X)
c.forward(Y)

for i in range(100):
square(100,90)
square(0,30+2)
Daniel Miller
import turtle
w=turtle.Turtle()
def square(length,angle):
w.forward(length)
w.right(angle)
w.forward(length)
w.right(angle)
w.forward(length)
w.right(angle)
w.forward(length)
w.right(angle)
w.right(10)

for i in range(30):
square(50,90)
gokulakrishnan
import turtle

my_turtle=turtle.Turtle()


def square(length,angle):
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)




for i in range(100):
square(50,90)
my_turtle.left(1)




working good....
cool!
birajkarki
my_turtle = turtle.Turtle()


def square(length, angle):
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)
my_turtle.left(angle)
my_turtle.forward(length)

my_turtle.left(80)

my_turtle.forward(length)
my_turtle.left(80)
my_turtle.forward(length)
my_turtle.left(80)
my_turtle.forward(length)
my_turtle.left(80)
my_turtle.forward(length)









for i in range(100):
square(50, 90)


i think i am close