Previous Lecture Complete and continue  

  Exercise 2: The Turtle

Before we get into the more technical stuff, let's do something fun!
Exercise 2: Read this on how to do more fun things with the turtle!

503 comments
Shariyar Abeer
>>> import turtle
>>> bob=turtle.Turtle
>>> bob=turtle.Turtle()
>>> dot_distance=25
>>> width=5
>>> height=7
>>> bob.penup()
>>> for y in range(height):
for i in range(width):
bob.dot()
bob.forward(dot_distance)
bob.backward(dot_distance * width)
bob.right(90)
bob.forward(dot_distance)
bob.left(90)

my code didnt work why is that??
Pacquiao
import turtle
noob = turtle.Turtle()

noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.left(180)
noob.forward(150)
noob.right(45)
noob.forward(50)
noob.right(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.right(135)
noob.forward(100)
noob.right(45)
noob.forward(75)
noob.right(135)
noob.forward(100)
noob.left(135)
noob.forward(75)
noob.right(135)
noob.forward(50)

noob.left(90)
noob.forward(300)
noob.right(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.left(180)
noob.forward(150)
noob.right(45)
noob.forward(50)
noob.right(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.right(135)
noob.forward(100)
noob.right(45)
noob.forward(75)
noob.right(135)
noob.forward(100)
noob.left(135)
noob.forward(75)
noob.right(135)
noob.forward(50)
noob.left(90)
noob.forward(300)
noob.right(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.left(180)
noob.forward(150)
noob.right(45)
noob.forward(50)
noob.right(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.right(135)
noob.forward(100)
noob.right(45)
noob.forward(75)
noob.right(135)
noob.forward(100)
noob.left(135)
noob.forward(75)
noob.right(135)
noob.forward(50)


noob.left(90)
noob.forward(300)
noob.right(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.left(180)
noob.forward(150)
noob.right(45)
noob.forward(50)
noob.right(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.right(135)
noob.forward(100)
noob.right(45)
noob.forward(75)
noob.right(135)
noob.forward(100)
noob.left(135)
noob.forward(75)
noob.right(135)
noob.forward(50)
noob.left(90)
noob.forward(300)
noob.right(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.left(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.left(180)
noob.forward(150)
noob.right(45)
noob.forward(50)
noob.right(90)
noob.forward(100)
noob.right(90)
noob.forward(50)
noob.left(45)
noob.forward(150)
noob.right(135)
noob.forward(100)
noob.right(45)
noob.forward(75)
noob.right(135)
noob.forward(100)
noob.left(135)
noob.forward(75)
noob.right(135)
noob.forward(50)
Mike Kaufmann
haha, seriously? xD
Mike Kaufmann
https://repl.it/GChY/3 done with a loop.
Chastity Lawson
https://repl.it/GChY/0
Mohamed Emad Mohamed Elsayed
import turtle
my_turtle=turtle.Turtle()
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)
Shariyar Abeer
import turtle
bob=turtle.Turtle()
for i in range(50):
bob.forward(100)
bob.left(123)
turtle.done()

Tuomas Korjus
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(80)
my_turtle.right(80)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
Cavendish Mwangi
import turtle
my_turtle = turtle.Turtle()
for i in range(4):
my_turtle.forward(100)
my_turtle.left(90)
Ronny Kristiansen
>>> my_turtle = turtle.Turtle()
>>> 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_turtlr.forward (100)
Traceback (most recent call last):
File "", line 1, in
my_turtlr.forward (100)
NameError: name 'my_turtlr' is not defined
>>> my_turtle.forward (100)


LMAO
Ivo Ivanov
https://repl.it/GBOT/0
Jayanth
import turtle
my_turtle = turtle.Turtle()
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)
Purushottam Banstola
Exercise 2 : The Turtle
code Snippet
import turtle
# Make a square with the turtle.
my_turtle = turtle.Turtle()
my_tuttle = turtle.forward(100)
my_turtle = turtle.left(90)
my_tuttle = turtle.forward(100)
my_turtle = turtle.left(90)
my_tuttle = turtle.forward(100)
my_turtle = turtle.left(90)
my_tuttle = turtle.forward(100)
Lloyd Martin
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
Rafeh Qazi
Nice work!

Let me show you how to make the code look beautiful...


import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)


http://d.pr/i/23s7
TrisuLi
import turtle

my_turtle = turtle.Turtle()

def circle(lenght, angle):
for i in range (1, 37):
my_turtle.forward(lenght)
my_turtle.right(angle)

circle(10, 10)
TrisuLi
import turtle

my_turtle = turtle.Turtle()

def Square(lenght, angle):
for i in range (1, 5):
my_turtle.forward(lenght)
my_turtle.right(angle)

Square(100, 90)
Anuj Nirmal
import turtle
ob = turtle.Turtle()
ob.forward(100)
ob.left(90)
ob.forward(100)
ob.left(90)
ob.forward(100)
ob.left(90)
ob.forward(100)
Raji Jayakumar
https://repl.it/GAqR/0
Pranjal Kole
https://repl.it/Dazt/3
Adam B.
https://repl.it/GANB/1
Michele Walker
https://repl.it/Fzta
Sowjanya
https://repl.it/Fzgk/0
Davide
import turtle


# Make a square with the turtle.
banjer = turtle.Turtle()
banjer.forward(100)
banjer.left(90)
banjer.forward(100)
banjer.left(90)
banjer.forward(100)
banjer.left(90)
banjer.forward(100)
HIMANSHU PUJARI
import turtle

smart = turtle.Turtle()
for i in range(4):
smart.forward(50)
smart.right(90)

turtle.done()
Mohd Sarwar Mohiuddin
import turtle

my_turtle=turtle.Turtle()
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)
Amal A A
import turtle

it=turtle.Turtle()

it.forward(100)

it.left(90)

it.forward(100)

it.left(90)

it.forward(100)

it.left(90)

it.forward(100)

it.left(135)

it.forward(142)

it.left(135)

it.forward(100)

it.left(135)

it.forward(142)

# Make a square with the turtle.
Rigel Reyes
import turtle
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)

Yeah :D
Tyrese Christian Jaden Salandy
https://repl.it/Fxyf/1
Shariyar Abeer
import turtle
my_turtle=turtle.Turtle()
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)
Marek Ondrejka
https://repl.it/FyXk/0
Kevin Pflug
https://trinket.io/python/1163556866

Tried copying and pasting the code into repl.it but it wouldn't work there...anyone know why?
Maksym
https://repl.it/FyJJ/0
Katie Pardee
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
Elizabeth Paul
import turtle


# Make a square with the turtle.

my_turtle = turtle.Turtle()
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)
Rudy Espinoza
import turtle
Espinoza = turtle.Turtle()
Espinoza.backward(100)
Espinoza.left(90)
Espinoza.backward(100)
Espinoza.left(90)
Espinoza.backward(100)
Espinoza.left(90)
Espinoza.backward(100)
Deepak Raya Velgapuni
import turtle
deep=turtle.Turtle();
deep.forward(100)
deep.left(90)
deep.forward(100)
deep.left(90)
deep.forward(100)
deep.left(90)
deep.forward(100)
Muthu Sankar Venkatachalam
import turtle
>>> my_turtle=turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turlte.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
Mark Evans
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
Dayana Iliyanova Boycheva
https://trinket.io/python/71835eff4b
Brett Young
>>> import turtle
>>> my_turtle=turtle.Turtle()
>>> 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)
>>>
karthikeyan
import turtle
my_turtle = turtle.Turtle()
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)


# Make a square with the turtle.

i done it........
John Leo
https://trinket.io/python/5d39db6f2a
Humera Mhyn
>>> my_turtle = turtle.Turtle()
>>> 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)
Naufal A J
https://trinket.io/python/6041ce2810
Christian Smith
https://repl.it/FwLX/0
Emily
https://trinket.io/python/2ff139a93a
George
https://trinket.io/python/25bccffd17
Chris YJ Chung
https://repl.it/Fv79/1
VIREN PATEL
import turtle
my_turtle = turtle.Turtle()
for i in range(4):
my_turtle.forward(100)
my_turtle.right(90)
Reno Reiness
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
>>>
mohammed sheikh
https://repl.it/FvBY/0
yeeee haw!
Kyle holbrook
https://trinket.io/python/1539d6f611
Kyle holbrook
https://trinket.io/python/ba0a6788a0
Takudzwa Tembedza
https://trinket.io/python/90399ca09f
Joshua Pauldin
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
Patrick Fallah-Hollist
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.left(90)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
Ivan Saw
https://repl.it/FtQk/0
Musa Ismail
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(90)
my_turtle.left(60)
my_turtle.forward(25)
my_turtle.left(30)
my_turtle.forward(25)
my_turtle.right(45)
my_turtle.forward(45)
my_turtle.right(45)
my_turtle.forward(25)

DEEP SHAH
https://trinket.io/python/180941c51f
Joshua Madeiros
https://repl.it/FspS/4
MEHMET
import turtle
my_turtle = turle.Turtle()
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)

# Make a square with the turtle.
Wilberto Burgos
import turtle
my_turtle = turtle.Turtle()
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)
Ramon Pereyra
im having fun :)
Tamir Hadani
import turtle
my_turtle=turtle.turtle()
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(90)
Resha Sakhalkar
>>> import turtle
>>>
>>>
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
>>>
Shahbaz
>>> import turtle
...
>>> my_turtle = turtle.Turtle()
>>> 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)
Abdullah Alanazi
>>> import turtle
>>> ninja = turtle.Turtle()
>>> ninja.forward(100)
>>> ninja.left(90)
>>> ninja.forward(100)
>>> ninja.left(90)
>>> ninja.forward(100)
>>> ninja.left(90)
>>> ninja.forward(100)
abhishek kumar
import turtle
my_turtle = turtle.Turtle()
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)
Karunakar Das
import turtle


my_turtle = turtle.Turtle()
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)
Vad Bertalan
#check this one out. Vad Bertalan

import turtle
t=turtle.Turtle()

def square(x):
t.forward(x)
t.left(90)
t.forward(x)
t.left(90)
t.forward(x)
t.left(90)
t.forward(x)
t.left(45)

t.speed(500)
x=30
t.pencolor("red")
for i in range(10):
for j in range(10):
square(x)
x=x+10
t.speed(+1000)
if t.pencolor()=="red":
t.pencolor("blue")
elif t.pencolor()=="blue":
t.pencolor("green")
elif t.pencolor()=="green":
t.pencolor("red")

#VAD BERTALAN
Gunnar
from turtle import *
some one please help
this is how I get the turtle to pop up but it makes it really hard to do the lesson
Mathias
Bonus, just for fun :) : https://repl.it/FqUL/0
Mathias
https://repl.it/FqSf
Gayathri
import turtle
gp = turtle.Turtle()
for i in range(4):
gp.forward(130)
gp.right(90)
MD. Shahidul Islam Abir
https://repl.it/FqHl/2
Malcolm Hassan Davis
import turtle

Hassan_turtle=turtle.Turtle()
Hassan_turtle.forward(100)
Hassan_turtle.left(90)
Hassan_turtle.forward(100)
Hassan_turtle.left(90)
Hassan_turtle.forward(100)
Hassan_turtle.left(90)
Hassan_turtle.forward(100)


Benjamin Feliot
import turtle
my_turtle = turtle.Turtle()
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)
Mark Yates
https://repl.it/FpmX
Hannah Nyarkoah Nyarko
https://repl.it/ElX6/1
Quentin Fairo
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
Tuna Hunter
import turtle
donaldTrump = turtle.Turtle()
donaldTrump.forward(100)
donaldTrump.left(90)
donaldTrump.forward(100)
donaldTrump.left(90)
donaldTrump.forward(100)
donaldTrump.left(90)
donaldTrump.forward(100)

Hillary can't do the turtle :)
Albert Brain
import turtle
my_turtle=turtle.Turtle()
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)

After I got the turn and and forward. I used copy and paste to finish the square.
Albert Brain
import turtle
my_turtle=turtle.turtle()
my_turtle.forward(100)


Nothing happens
Albert Brain
import turtle
m_turtle=turtle.turtle()
my_turtle.forward(10)


nothing happens
Bramondy Thingujam
import turtle
my_turtle = turtle.Turtle()
my_turtle = turtle.forward(100)
my_turtle = turtle.left(90)
my_turtle = turtle.forward(100)
my_turtle = turtle.left(90)
my_turtle = turtle.forward(100)
my_turtle = turtle.left(90)
my_turtle = turtle.forward(100)


just make a square using #python
Sean
Rude_turtle:

import turtle
turtle.forward(15)
turtle.right(90)
turtle.forward(15)
turtle.right(90)
turtle.forward(15)
turtle.right(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(30)
turtle.left(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(15)
turtle.right(90)
turtle.forward(7.5)
turtle.right(90)
turtle.forward(45)
Brittany
import turtle

my_turtle = turtle.Turtle()
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)
Randy Fournier
A Circle:

circle = turtle.Turtle()

for i in range(38):
circle.forward(10)
circle.right(10)
Randy Fournier
https://repl.it/Foxl/0 Cubed it.
Luciano Thomes
https://repl.it/Fouh/0 wiiiiiiiiiiiii
Cameron McKee
It takes a while but it's worth it :)

spiral = turtle.Turtle()

for i in range(73):
spiral.forward(180)
spiral.right(143)

turtle.done()
M A Mannan
import turtle
my_turtle=turtle.Turtle(50)
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)

# Make a square with the turtle.
phil march
import turtle
my_turtle = turtle.Turtle()
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.forward(50)
Amir Sultan
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
María Luz Molina
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(70)
>>> my_turtle.left(90)
>>> my_turtle.forward(70)
>>> my_turtle.left(90)
>>> my_turtle.forward(70)
>>> my_turtle.left(90)
>>> my_turtle.forward(70)
Drew Clough
import turtle
my_turtle = turtle.Turtle()
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)
Rob Aimes
import turtle


my_turtle=turtle.Turtle()
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)
Nick Lidong'a
import turtle
my_turtle=turtle.Turtle()
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)
Supriya . C
import turtle
my_turtle=turtle.Turtle()
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)
abdullah habsa
gm = turtle.Turtle()
gm.forward(100)
gm.left(90)
gm.forward(100)
gm.left(90)
gm.forward(100)
gm.left(90)
gm.forward(100)
avi sharma
I am confused as to why we have to write the below line of code if we have already imported the turtle.

my_turtle=turtle.Turtle()

what does that line mean for the program?
Aside, from that I was able to create a square.
zeenath Syedda
yayay.. got it.. in python 3.6, i dont have to type my_.. just {turtle.forward(100) works!! cool
zeenath Syedda
Hi, i am new to this, just downloaded the latest phython 3.6. i tried here and its working fine but the version on my computer (running windows) say turtle is not defined

>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>>

my_turtle = turtle.Turtle()
NameError: name 'turtle' is not defined

File "", line 1, in
my_turtle = turtle.turtle()
NameError: name 'turtle' is not defined

pls help. thank you
Ngonidzashe
import turtle
my_turtle = turtle.Turtle()
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)
Pratik Ghosh
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
Amit Karn
import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
Zangaro Zangaroo
import turtle

zz = turtle.Turtle()
zz.forward(100)
zz.left(90)
zz.forward(100)
zz.left(90)
zz.forward(100)
zz.left(90)
zz.forward(100)

:) Thank you!!!
Talib Hamidullah
I don't understand how you used the 50 degrees movement....when a perfect square is 4 90 degree turns...was kinda hungup on that....
Zangaro Zangaroo
It was just a demonstration on what can be done with Python, he wasn't trying to make a perfect square right there. You have to figure out how to make the square.
Anim Alam
Tried another one

import turtle
my_turtle=turtle.Turtle()
my_turtle.forward (200)
my_turtle.right (90)
my_turtle.forward (200)
my_turtle.right (90)
my_turtle.forward (200)
my_turtle.right (90)
my_turtle.forward (200)
my_turtle.right (90)
my_turtle.forward (100)
my_turtle.right (90)
my_turtle.forward (50)
my_turtle.right (90)
my_turtle.forward (100)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.right (90)
my_turtle.forward (100)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.right (90)
my_turtle.forward (100)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.left (90)
my_turtle.forward (50)
my_turtle.right (90)
my_turtle.forward (100)

# Make a square with the turtle.
Thomas Sawyer
https://repl.it/Fj6v/0
mohamed gmal
import turtle


# Make a square with the turtle.
gm = turtle.Turtle()
gm.forward(100)
gm.left(90)
gm.forward(100)
gm.left(90)
gm.forward(100)
gm.left(90)
gm.forward(100)
Seweryn Siewert
import turtle
# Make a square with the turtle.
qb=turtle.Turtle()
qb.forward(100)
qb.left(90)
qb.forward(100)
qb.left(90)
qb.forward(100)
qb.left(90)
qb.forward(100)
qb.left(90)
Abiola Ajayi
https://repl.it/Fhqu/0
Hania Arif
https://repl.it/FhOm/1
Naufal A J
https://trinket.io/python/a2da14dac5
Yash Rastogi
https://repl.it/Fgsb/0
Max Litja
import turtle
my_turtle = turtle.Turtle()
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)
Zunain Khan
import turtle


my_turtle = turtle.Turtle()
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)
Zachary Plotkin
my_turtle = turtle.Turtle()
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)
storm
import turtle
my_turtle=turtle.Turtle()
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)
Jonas Hansen
import turtle


# Make a square with the turtle.

my_turtle = turtle.Turtle()
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)
ika
import turtle
my_turtle=turtle.Turtle()
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)
Tushar wasnik
my_turtle = turtle.Turtle()
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)
Usman Shahid
my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(60)
my_turtle.forward(100)
my_turtle.left(60)
my_turtle.forward(100)
my_turtle.left(60)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(75)
Manjul Joshi
my_turtle=turtle.Turtle()
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)
Bharat kumar
https://repl.it/Ffcl/0
Isheanesu Chikuvanyanga
>>> ss='hello'
>>> ss[::-1]
'olleh'
Arslaan khan
my_turtle=turtle.Turtle()
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)
Teodora Stroia
import turtle
my_pizza = turtle.Turtle()
my_pizza.forward(100)
my_pizza.left(90)
my_pizza.forward(100)
my_pizza.left(90)
my_pizza.forward(100)
my_pizza.left(90)
my_pizza.forward(100)
balajinia
>>> 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)
Jary Kroon
Dear all,

My turtle is on the move! Watch it by clicking to following link:

https://repl.it/Fd1P/0

Cheers, Jary
instagram: @fladrjary
Yuchong Luan
import turtle

yy = turtle.Turtle()

for i in range(4):
yy.forward(100)
yy.left(90)

turtle.done()
Komlan
import turtle
u = turtle.Turtle()
nside = 4
lside = 100
angle = 360.0 / nside
for i in range (nside):
u.forward(lside)
u.right(angle)
Komlan
import turtle
u = turtle.Turtle()
for i in range(4):
u.forward(100)
u.right(90)
turtle.done()
Komlan
import turtle
u = turtle.Turtle()
u.forward(100)
u.left(90)
u.forward(100)
u.left(90)
u.forward(100)
u.left(90)
u.forward(100)
Isheanesu Chikuvanyanga
>>> import turtle
>>>
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
Jay maurya
import turtle

my_turtle = turtle.Turtle()
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)

muhammad zeeshan sattar
import turtle

zee = turtle.Turtle()
zee.forward(100)
zee.left(90)
zee.forward(100)
zee.left(90)
zee.forward(100)
zee.left(90)
zee.forward(100)
# Make a square with the turtle.
Ivan Buglosa
import turtle
myTurtle = turtle.Turtle()
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
Deepak Kaushik
import turtle
my_turtle = turtle.Turtle()
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)
Henry Lam
import turtle
my_turtle = turtle.Turtle()
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)

# Make a square with the turtle.
Kiley Campbell
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
Jerry Ciccotti
import turtle
my_turtle = turtle.Turtle()
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)
Ahad Ather
import turtle
my_turtle = turtle.Turtle()
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)
# Make a square with the turtle.
Brett Reppert
import turtle

my_turtle= turtle. Turtle()
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)

# Make a square with the turtle.
imane agnamma
the turtle examples are the best good job
Jáizon Carlos
import turtle


# Make a square with the turtle.
Slow=turtle.Turtle()
Slow.forward(100)
Slow.left(90)
Slow.forward(100)
Slow.left(90)
Slow.forward(100)
Slow.left(90)
Slow.forward(100)
Slow.left(90)
Parthu34
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
Jeff Schneider
>>> import turtle
>>> Fred = turtle.Turtle()
>>> Fred.backward(100)
>>> Fred.left(90)
>>> Fred.forward(100)
>>> Fred.right(90)
>>> Fred.forward(200)
>>> Fred.right(135)
>>> Fred.forward(150)
>>> turtle.done

>>>

This is fun!
Jeff Schneider
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left (90)
>>> my_turtle.forward(200)
>>> my_turtle.left(135)
>>> my_turtle.forward(150)
>>>
Penny
https://repl.it/F8us/0
Sai Win Naing Lin
import turtle
turtle = turtle.Turtle()
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
Kyle Jurek Petersen
my_turtle = turtle.Turtle()
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)
Dean Roberts
import turtle
my_turtle = turtle.Turtle()
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)
Mohamed Yazid Aziz
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
Markkus Pokrovski
import turtle

my_turtle = turtle.Turtle()
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)
Raj Mishra
>>> my_turtle = turtle.Turtle()
>>> my_turtle.fd
>>> my_turtle.fd(100)
>>> my_turtle.lt(90)
>>> my_turtle.fd(100)
>>> my_turtle.lt(90)
>>> my_turtle.fd(100)
>>> my_turtle.lt(90)
>>> my_turtle.lt(90)
>>> my_turtle.lt(270)
>>> my_turtle.fd(100)
stuart
https://repl.it/F7aF/1
ansari
import turtle

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

bob.forward(100)
bob.right(90)
bob.forward(100)
bob.right(90)
bob.forward(100)
bob.right(90)
bob.forward(100)
bob.right(90)
Aadar Gupta
import turtle

my_turtle = turtle.Turtle()
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)
Kiran Choudhari
import turtle
t=turtle.Turtle()
t.left(90)
for i in range(20):
t.right(90)
t.forward(100)
t.right(72)
Joe Doe
import turtle

my_turtle = turtle.Turtle()
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)
my_turtle.right(90)
my_turtle.forward(2.65)

#TurtleDoughnuts
Shrutik Goyani
import turtle
m=turtle.Turtle()
m.forward(100)
m.left(90)
m.backward(100)
m.right(90)
m.backward(100)
m.left(90)
m.forward(100)
ALBERT CHORE
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(23)
my_turtle.left(90)
my_turtle.forward(23)
my_turtle.left(90)
my_turtle.forward(23)
my_turtle.left(90)
my_turtle.forward(23)
Omkar
for square the code will this :
import turtle

my_turtle = turtle.Turtle()
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(90)
Creatron Omega
There Mwahahahahahaha!!!!!!!!
-------------------------------------------------------------------------

import turtle


my_turtle = turtle.Turtle()

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)

------------------------------------------------------------------------
Shreshth Parmar
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.backward(100)
>>> my_turtle.right(90)
>>> my_turtle.backward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
Simon Neirynck
>>> import turtle

>>> my_turtle = turtle.Turtle()

>>> 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)
Nidhi Panchal
import turtle

t = turtle.Turtle()
t = turtle.forward(100)
#t = turtle.left(100)
t = turtle.left(90)
t = turtle.forward(100)
t = turtle.left(90)
t = turtle.forward(105)
t = turtle.left(90)
t = turtle.forward(105)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
seshu guttula
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
sahil dahiya
import turtle
my_turtle = turtle.Turtle()
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)
Václav Kokotek
https://repl.it/F5yw/0 ...but i have a question. How to make both turtles move? :)
Amir Hossein Asghari
https://trinket.io/python/39b6829c83
Kannan Priyadharshan
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
geevan erasga asilom
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(180)
my_turtle.left(90)
my_turtle.forward(180)
my_turtle.left(90)
my_turtle.forward(180)
my_turtle.left(90)
my_turtle.forward(180)
Jennifer Eis
http://www.replit.com/F5VX/0
brian reaume
import turtle
my_turtle = turtle.Turtle()
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(135)
my_turtle.forward(142)
my_turtle.left(90)
my_turtle.forward(71)
my_turtle.left(90)
my_turtle.forward(71)
my_turtle.left(90)
my_turtle.forward(142)
André du Rietz
I went overboard https://repl.it/F5RS/0 :D

However I have a question, how do i make two turtles? or even more I wanna make them chase each other in funny pattern, and also can you make the trails after them appear in different colors?
Mohammed Saleem Al Khabori
import turtle

blu = turtle.Turtle()

blu.pencolor("blue")

for i in range(20):
blu.forward(100)
blu.right(90)

turtle.done()
don
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
Leovardo Leos
https://trinket.io/python/c8c3f433ab
Akansha
# Make a square with the turtle.
import turtle
my_turtle=turtle.Turtle()
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)

happycoder
import turtle


t = turtle.Turtle()

t.forward(100)
t.left(120)
t.forward(100)
t.left(120)
t.forward(100)
t.forward(50)
t.left(120)
t.forward(150)
t.left(120)
t.forward(50)
Cyril
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.right(50)
>>> my_turtle.right(-50)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
Nuzair IB
Its my turtle code sir!
https://trinket.io/python/dfb189cc21
Roberto Chavez
https://repl.it/F2YD/0
lokendra Carpenter
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
Thalia Aguilera
I played around with the code and I got this
https://repl.it/FImO/2
Emīls Vīgants
valentines baby xd
import turtle
turtle = turtle.Turtle()
turtle.left(45)
turtle.forward(100)
turtle.left (45)
turtle.forward (50)
turtle.left (45)
turtle.forward (25)
turtle.left (45)
turtle.forward (25)
turtle.left (45)
turtle.forward (25)
turtle.right (90)
turtle.forward (25)
turtle.left (45)
turtle.forward (25)
turtle.left (45)
turtle.forward (25)
turtle.left (45)
turtle.forward (50)
turtle.left(45)
turtle.forward (100)
yulbb
import turtle
y=turtle.Turtle()
y=turtle.forward(100)
y=turtle.left(90)
y=turtle.forward(100)
y=turtle.left(90)
y=turtle.forward(100)
y=turtle.left(90)
y=turtle.forward(100)


# Make a square with the turtle.
Fares Mrabet
import turtle
t = turtle.forward(100)
t = turtle.left (90)
t = turtle.forward (100)
t= turtle.right (-90)
t= turtle.forward (100)
t=turtle.left(90)
t=turtle.forward (100)
Lorde Axel
import turtle

my_turtle=turtle.Turtle()
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)
Albert Smith
import turtle

# Make a square with the turtle.

t1 = turtle.Turtle()
t1.forward(100)
t1.left(90)
t1.forward(100)
t1.left(90)
t1.forward(100)
t1.left(90)
t1.forward(100)
Tanushree
It shows an error 'Expected an indented block'.
What is it?
import turtle
ab=turtle.Turtle()
for i in range(50):
ab.forward(100)
ab.right(45)
turtle.done()
Thalia Aguilera
import turtle


# Make a square with the turtle.

import turtle

my_turtle = turtle.Turtle()
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(100)
SK MD GALIB
#Another example
import turtle

galib = turtle.Turtle()
galib.speed(100)
galib.pencolor("red")
for i in range (100):
galib.forward(400)
galib.left(145)
Sujay Deo
https://repl.it/FYbY/0
SK MD GALIB
import turtle


# Make a square with the turtle.
#square
galib = turtle.Turtle()
galib.forward(100)
galib.left(90)
galib.forward(100)
galib.left(90)
galib.forward(100)
galib.left(90)
galib.forward(90)
galib.left(90)
galib.forward(90)
galib.left(90)
galib.forward(80)
galib.left(90)
galib.forward(80)
galib.left(90)
galib.forward(70)
galib.left(90)
galib.forward(70)
galib.left(90)
galib.forward(60)
galib.left(90)
galib.forward(60)
galib.left(90)
galib.forward(50)
galib.left(90)
galib.forward(50)
galib.left(90)
galib.forward(40)
galib.left(90)
galib.forward(40)
galib.left(90)
galib.forward(30)
galib.left(90)
galib.forward(30)
galib.left(90)
galib.forward(20)
galib.left(90)
galib.forward(20)
galib.left(90)
galib.forward(10)
galib.left(90)
Jeremy Baker
import turtle


# Make a square with the turtle.
my_turtle = turtle.Turtle()
my_turtle.pencolor("Blue")
def oneStep():
my_turtle.forward(90)
my_turtle.left(90)

def fourSteps():
for x in range(4):
oneStep()

boxA = fourSteps()

Saad Ahmad Khan
import turtle
turtle = turtle.Turtle()

turtle.forward (100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
Arafat
my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.backward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(200)
Tyrone White Jr.
import turtle
my_turtle = turtle.Turtle()
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)

# Make a square with the turtle.
kaasam harish kumar
import turtle


ab=turtle.Turtle()
ab.forward(150)
ab.left(90)
ab.forward(150)
ab.left(90)
ab.forward(150)
ab.left(90)
ab.forward(150)

# Make a square with the turtle.
Samuel Perkins
import turtle

my_turtle = turtle.Turtle()

turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
zakarya abdulbary
import turtle
my_turtle = turtle.Turtle()
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)

Vamshi G
The Turtle Exercise
code:
import turtle

my_turtle = turtle.Turtle()
>>> 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)
Ana Maria Habic
https://repl.it/FWQS/0
Premanshu Pareek
The link for Turtle-Square Program: https://repl.it/FWHE/0
Al Swaby
import turtle
my_turtle = turtle.Turtle()
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)

#This is the code to make a square like a boss:)
Daniel N
import turtle

# Make a square with the turtle.


my_turtle = turtle.Turtle()
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)

____________________________________________________

Turtle loop

https://repl.it/FVZr/1
Ronaldo Chavez
my_turtle = turtle.Turtle()
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)
Arian Zahir
https://repl.it/FUCk/0
Robert L. Mcdade
import turtle
my_turtle = turtle.Turtle()
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)

print ("The square from all corners")





shahrukh sheikh
import turtle
my_turtle= turtle.Turtle()

my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)

print("this is my turtle square")
Shikhar Sharma
https://trinket.io/python/d1fd81e276
Mohammed Haris
# Make a square with the turtle.
my_turtle = turtle.Turtle()
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)
Joyner
I made a mistake at forward(90) :P

>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(200)
>>> my_turtle.left(90)
>>> my_turtle.forward(200)
>>> my_turtle.left(90)
>>> my_turtle.forward(90)
>>> my_turtle.forward(110)
>>> my_turtle.left(90)
>>> my_turtle.forward(200)
Slawek Kozak
import turtle
t = turtle.Turtle()
n = 4
while(n>0):
t.forward(100)
t.left(90)
n=n-1
Eimear Galligan
import turtle
my_turtle = turtle.Turtle ()
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)
Shaun
import turtle
my_turtle = turtle.Turtle()
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)
Thomas Loving
>>> my_turtle = turtle.Turtle()
>>> 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)
Lok Chee Hin
Can You help Me it keeps showing this:

Traceback (most recent call last):
File "C:\Users\GM\Desktop\Python\turtle.py", line 1, in
import turtle
File "C:\Users\GM\Desktop\Python\turtle.py", line 3, in
painter = turtle.Turtle()
AttributeError: 'module' object has no attribute 'Turtle'


By The Way The Code:

import turtle

painter = turtle.Turtle()

painter.pencolor("blue")

for i in range(50):
painter.forward(50)
painter.left(123)

painter.pencolor("red")
for i in range(50):
painter.forward(100)
painter.left(123)
jason
my_turtle = turtle.Turtle()
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.forward(125)
my_turtle.spiral(100)
rahul raj mishra
my turtle

https://repl.it/FQqD/0
Shreyank
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(20)
Orion Thomas
https://repl.it/FQUz/0
Chelsea-lee Brummer
import turtle

my_turtle = turtle.Turtle()
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)
Aman Singh
https://repl.it/FQXk/1
but when i am going to run it on repl.it it is not working please tell me what is the problem.
Kim Yao
import turtle

my_turtle=turtle.Turtle()
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)
Rajnish kumar
https://repl.it/FQKB/0
Imaneh Ameli
https://repl.it/FP77/1
Robert Jomar Malate
import turtle

my_turtle = turtle.Turtle()
my_turtle.forward (100)
my_turtle.left(45)
my_turtle.left(45)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)

# Make a square with the turtle.
Angelica Mireles
import turtle
my_turtle = turtle.Turtle ()
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)
Arturo Martínez
import turtle
my_turtle = turtle.Turtle ()
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)
# Make a square with the turtle.
somepalli sriteja
import turtle
myturtle = turtle.Turtle()
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)

Michael
my_turtle = turtle.Turtle()
>>> 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)
Rajan Jha
hey!!
https://repl.it/FOC5/3
don't know what to do...plzz help
kwesijr
import turtle
my_turtle = turtle.Turtle()
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.done()
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(100)
my_turtle.right(135)
my_turtle.forward(130)
my_turtle.right(130)
my_turtle.forward(100)
Opeyemi Alabi
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)

my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(180)
my_turtle.forward(25)

my_turtle.left(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(25)

my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(-90)

my_turtle.forward(50)
my_turtle.left(-90)
my_turtle.forward(25)
my_turtle.left(-180)
my_turtle.forward(25)
Dziaba Ducha
If you want to have actual turtle then here you go

import turtle

my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(180)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.right(180)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(180)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.right(180)
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)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
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)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(75)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(90)
my_turtle.left(45)
my_turtle.forward(15)
my_turtle.right(90)
my_turtle.forward(15)
my_turtle.left(45)
my_turtle.forward(90)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.left(90)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.left(90)
my_turtle.forward(25)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(180)
Doua Moua
# Make a square with the turtle.
silly = turtle.Turtle()
for i in range(100):
silly.forward (3)
silly.left(5)
Luis E. Troncoso
https://trinket.io/python/94e077fc50
Dziaba Ducha
import turtle
my_turtle = turtle.Turtle()
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 = turtle.Turtle()
Brandon White
https://repl.it/FMWT/0

think I got it right tried to do two 45 degree turns but was not able to get it to work.
ziad002
import turtle
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
Rakib Mozahid
import turtle
my_turtle = turtle.Turtle()
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)
Marc Ezekiel L Sibal
Please help
I dont know how to open the python turtle graphucs shown in 2:02 in "The Turtle" lesson
Raiyeem Farhan
Hey Rafeh,

When I try to import turtle in pycharm
I get this following message in console:
"C:\Users\user\AppData\Local\Programs\Python\Python35\python.exe C:/Users/user/PycharmProjects/LearningPy/turtle.py
Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/LearningPy/turtle.py", line 1, in
import turtle
File "C:\Users\user\PycharmProjects\LearningPy\turtle.py", line 3, in
silly = turtle.Turtle()
AttributeError: module 'turtle' has no attribute 'Turtle'

Process finished with exit code 1"

I tried to run the following code:
import turtle

silly = turtle.Turtle()

silly.forward(50)
silly.right(90) # Rotate clockwise by 90 degrees

silly.forward(50)
silly.right(90)

silly.forward(50)
silly.right(90)

silly.forward(50)
silly.right(90)

turtle.done()

--------------------------------------------------------------------
but it is working fine in the cleverprogrammer.com complier it runs properly.


A little help please.
Raiyeem Farhan
import turtle
bahadur = turtle.Turtle()
bahadur.pencolor("blue")
bahadur.forward(95)
bahadur.left(90)
bahadur.pencolor("green")
bahadur.forward(95)
bahadur.left(90)
bahadur.pencolor("red")
bahadur.forward(95)
bahadur.left(90)
bahadur.pencolor("yellow")
bahadur.forward(95)
# Make a square with the turtle.
jaseela jasmine
import turtle

jjTurtle=turtle.Turtle()
jjTurtle.forward(200)
jjTurtle.left(90)
jjTurtle.forward(200)
jjTurtle.left(90)
jjTurtle.forward(200)
jjTurtle.left(90)
jjTurtle.forward(200)
Diego Jimenez
import turtle
pizza = turtle.Turtle()
pizza.forward(100)
pizza.left(90)
pizza.forward(100)
pizza.left(90)
pizza.forward(100)
pizza.left(90)
pizza.forward(100)

Karlo Turk
import turtle

easy = turtle.Turtle()
easy.forward(50)
easy.right(90)
easy.forward(50)
easy.right(90)
easy.forward(50)
easy.right(90)
easy.forward(50)
easy.right(90)

turtle.done()
Rick Beaudet
import turtle
no_turtle = turtle.Turtle()
no_turtle.forward(100)
no_turtle.left(90)
no_turtle.forward(100)
no_turtle.left(90)
no_turtle.forward(100)
no_turtle.left(90)
no_turtle.forward(100)
Rohan Tinna
import turtle

my_turtle = turtle.Turtle()
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)
Alexandra Renee
>>> my_turtle = turtle.Turtle()
>>> 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)
Ashish Kumar
turtle = turtle.Turtle()
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
Mast Ram Sharma
https://repl.it/FJmD
Mast Ram Sharma
import turtle
my_turtle=turtle.Turtle()
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)
Raihan Sufian
import turtle
my_turtle = turtle.Turtle()
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)
Noah Seethor
https://repl.it/FJjL/0
Amruta Palo
import turtle
mt=turtle.Turtle()
mt.forward(100)
mt.left(90)
mt.forward(50)
mt.left(90)
mt.forward(100)
mt.left(90)
mt.forward(50)

Christopher Vargas
https://repl.it/FJct/1
Willem Krattley
import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my.turtle.forward(100)
Traceback (most recent call last):
File "", line 1, in
my.turtle.forward(100)
NameError: name 'my' is not defined
>>> my.turtle.forward(100)
Traceback (most recent call last):
File "", line 1, in
my.turtle.forward(100)
NameError: name 'my' is not defined
>>> my.turtle.forward(100)
Traceback (most recent call last):
File "", line 1, in
my.turtle.forward(100)
NameError: name 'my' is not defined
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
Furkan Kalabalık
import turtle

my_turtle = turtle.Turtle()
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)
Jesudara Omidokun
import turtle



my_turtle = turtle.Turtle()
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)
Arnold Kisala

>>> my_turtle = turtle.Turtle()
m
>>> my_turtle.forward(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(90)
>>>
Vineet Yadav
import turtle
t=turtle.Turtle()
for i in range(4):
t.left(90)
t.forward(100)
turtle.done()
Hithaishy B
import turtle
my_turtle = turtle.Turtle()
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)
PRAMODH
Done :)
Robert de los santos
import turtle
q=turtle
my_q=q.Turtle()
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
Fahad Pitafi
import turtle


my_turtle = turtle.Turtle()
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
my_turtle.left(90)
my_turtle.forward(150)
Kevin Klein Nagelvoort
To make a circle of circles. :)

import turtle

bob = turtle.Turtle()

bob.speed(0)


for n in range(90):
bob.left(4)
for i in range(360):
bob.forward(1)
bob.left(1)
Te Rauoriwa Wilson
# Make a square with the turtle.
my_turtle = turtle.Turtle
My_turtle = turtle.forward(100)
my_turtle = turtle.Left(90)
my_turtle = turtle.forward(100)
My_turtle = turtle.left(90)
my_turtle = turtle.forward(100)
my_turtle = turtle.left(90)
my_turtle = turtle.forward(100)
Benjamin Hansen
>>> import turtle
>>> my_turtle=turtle.Turtle()
>>> 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)
VYASABHATTU NITHIN RAJU
import turtle
my_turtle=turtle.Turtle()
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)
Zane Hutchison
import turtle
my_turtle=turtle.Turtle()
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)
Kenneth Collins
import turtle


# Make a square with the turtle.
my_turtle=turtle.Turtle()
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)
Dillon Roberts
import turtle
turtle = turtle.Turtle()
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
changminlee
import turtle
my_turtle = turtle.Turtle()
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)
Pottreces
>>> myturtle = turtle.Turtle()
>>> myturtle.forward(100)
>>> myturtle.left(90)
>>> myturtle.forward(100)
>>> myturtle.left(90)
>>> myturtle.forward(100)
>>> myturtle.left(90)
>>> myturtle.forward(100)
sweta
import turtle
my_t=turtle.Turtle()
my_t.forward(100)
my_t.left(90)
my_t.forward(100)
my_t.left(90)
my_t.forward(100)
my_t.left(90)
my_t.forward(100)

# Make a square with the turtle.
Moagi Mathole
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.right(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>>
Sahaj Kapoor
import turtle
my_turtle=turtle.Turtle()
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)
Craig
my_turtle=turtle.Turtle()
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)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(45)
my_turtle.forward(100)
my_turtle.left(145)
my_turtle.forward(35)
my_turtle.right(180)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.left(180)
my_turtle.forward(35)
my_turtle.right(50)
my_turtle.forward(10)

What is the significance of turtle.Turtle() ? Is there a reason it is written in that manner?
Andres felipe Mora Guerrero
import turtle
my_turtle = turtle.Turtle()
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)
Aiden Walters
import turtle
myTurtle = turtle.Turtle()

myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
Naif Alzahrani
https://trinket.io/python/e3258ce3b2
Derrick
import turtle
my_turtle=turtle.Turtle()
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)
Md Shadab Munami
import turtle
my_turtle=turtle.Turtle()
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)
Mohammed Ameerunnisa
import turtle
my_turtle=turtle.Turtle()
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)
James Parham
import turtle

My_turtle = turtle.Turtle()
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)
Jalen Fleary
import turtle
turtle.forward(120)
turtle.left(90)
turtle.forward(120)
turtle.left(90)
turtle.forward(120)
turtle.left(90)
turtle.forward(120)
shane
import turtle
my_turtle = turtle.Turtle()
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)
Melina Pelling
import turtle
my_turtle = turtle.Turtle()
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)
abdul hussain
for a circle

import turtle

smart = turtle.Turtle()

# Loop 360 times. Everything I want to repeat is
# *indented* by four spaces.
for i in range(360):
smart.forward(1)
smart.right(1)
abdul hussain
for a circle

# Loop 360 times. Everything I want to repeat is
# *indented* by four spaces.
for i in range(360):
smart.forward(1)
smart.right(1)
Samson Gao
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(69)
my_turtle.right(90)
my_turtle.forward(69)
my_turtle.right(90)
my_turtle.forward(69)
my_turtle.right(90)
my_turtle.forward(69)
my_turtle.right(90)
Richard Zabdiel Omelda
import turtle
shit = turtle.Turtle()
shit.forward(100)
shit.right(90)
shit.forward(100)
shit.right(90)
shit.forward(100)
shit.right(90)
shit.forward(100)
Na Na
import turtle
my_square = turtle.Turtle()
my_square.forward(75)
my_square.left(90)
my_square.forward(75)
my_square.left(90)
my_square.forward(75)
my_square.left(90)
my_square.forward(75)
Teron Chapman
import turtle
Peter = turtle.Turtle()
Peter.forward(100)
Peter.left(90)
Peter.forward(100)
Peter.left(90)
Peter.forward(100)
Peter.left(90)
Peter.forward(100)
Joseph Rivera
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)
Rj Sayler
https://repl.it/FD69/0
Ali
https://repl.it/FDNv/0
sean gillespey
import turtle

joe = turtle.Turtle()

joe.forward(10)
joe.left(90)
joe.forward(10)
joe.left(90)
joe.forward(10)
joe.left(90)
joe.forward(10)
joe.left(90)
Alvin Ramdhanie
my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(100)
>>> my_turtle.right(10)
>>> my_turtle.forward(100)
prithvi
import turtle

my_turtle=turtle.Turtle()
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)
Dominik Friedel
import turtle
my_turtle = turtle.Turtle()
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)
Aparna Saha
import turtle

ninja = turtle.Turtle()

ninja.speed(5)

for i in range(180):
ninja.forward(100)
ninja.right(30)............(a)
ninja.forward(20)
ninja.left(60)
ninja.forward(50)
ninja.right(30)...................(b)

ninja.penup()
ninja.setposition(0, 0)
ninja.pendown()

ninja.right(2)



here in line (b) ninja.right(30) angle 30 between which lines ? i can not understand that.
Nathan Swedlund
i don't know what the ...'s and the (a) and (b) are but i think i made it work
i believe you forgot to indent your code

import turtle

ninja = turtle.Turtle()

ninja.speed(100)

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.forward(20)
ninja.left(60)
ninja.forward(50)
ninja.right(30)

ninja.penup()
ninja.setposition(0, 0)
ninja.pendown()

ninja.right(2)
Isaac Janing
import turtle


my_turtle = turtle.Turtle()
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)
Abdulla Omaruddin
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle ()
>>> 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)
Anderson Fung
https://repl.it/FCxx
Kathi
https://repl.it/FCwx/0
Iswarya
import turtle
my_turtle = turtle.Turtle()
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)
Ted Kurti
my_turtle = turtle.Turtle()
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)
daniel emirson
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
# Make a square with the turtle.
Brayan Matos Ruiz
import turtle

my_turtle = turtle.Turtle()
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)
# Make a square with the turtle.
Ravindra
https://trinket.io/python/efe48d6e11
vasim akram
Hi,
There is no intellisence like in C# visual studio.Y?
Is it some thing wrong with the python version that i have intsalled?
taufiq bambang
my_turtle = turtle.Turtle()
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)
Juan Jose Rios Jr
import turtle


# Make a square with the turtle.


faze = turtle.Turtle()
rain = turtle.Turtle(2)
faze.forward(100)
faze.left(90)
faze.forward(100)
rain.left(90)
rain.forward(100)
rain.right(90)
rain.forward(100)
Adex Elizy
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>>

>>>
>>> my_turtle.left(180)
>>> 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)
>>>
Joshua Halifax
my_turtle = turtle.Turtle()
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)
sravani batchu
https://repl.it/FBX9/1
sravani batchu
https://repl.it/FBX9/0
ben thomas
my_turtle=turtle.Turtle()
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)
Andrew Pulsifer
my_turtle = turtle.Turtle()
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)
Valdo Vilain

>>> my_turtle = turtle.Turtle()
>>> 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)
Arghya Polley
import turtle
my_turtle = turtle.Turtle()
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)
Ranjana Kushwaha
my_turtle = turtle.Turtle()
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)
Ismail Farouqe
my_turtle = turtle.Turtle()
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)
Corstiaan Roon
import turtle
>>> my_square = turtle.Turtle()
>>> my_square.forward(100)
>>> my_square.left(90)
>>> my_square.forward(100)
>>> my_square.left(90)
>>> my_square.forward(100)
>>> my_square.left(90)
>>> my_square.forward(100)
Jonas Bang
import turtle
my_turtle = turtle.Turtle()
my_turtle.circle(100)
my_turtle.backward(100)
my_turtle.forward(200)
my_turtle.left(120)
my_turtle.forward(227)
my_turtle.left(120)
my_turtle.forward(227)
my_turtle.left(120)
my_turtle.forward(40)
madan raj
my own creativity
not much better but you can say it circle in triangle or triangle in circle

import turtle
my_turtle = turtle.Turtle()
my_turtle.circle(100)
my_turtle.backward(100)
my_turtle.forward(200)
my_turtle.left(120)
my_turtle.forward(227)
my_turtle.left(120)
my_turtle.forward(227)
my_turtle.left(120)
my_turtle.forward(40)
kenneth
Hi check how i just rearranged your code

import turtle
my_turtle = turtle.Turtle()
my_turtle.color('blue')
my_turtle.setposition(0,0)
my_turtle.circle(100)
my_turtle.color('green')
my_turtle.forward(100)
my_turtle.left(116.57)
my_turtle.forward(224)
my_turtle.left(126.86)
my_turtle.forward(224)
my_turtle.left(116.57)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.hideturtle()
christian quintero
import turtle
my_turtle = turtle.Turtle
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)
Miroslav
https://repl.it/EzSi/0
Ibude Edison-Edebor
>>> my_turtle = turtle.Turtle()
>>> 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)
Gari Alfaro
import turtle


my_turt = turtle.Turtle()

my_turt.forward(100)
my_turt.left(90)
my_turt.forward(100)
my_turt.left(90)
my_turt.forward(100)
my_turt.left(90)
my_turt.forward(100)
Jordan
import turtle


my_turtle = turtle.Turtle()
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)
Vinoadh Kumar Krishnan
import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
Anant Dnyaneshwar Gaikwad
https://trinket.io/python/f2dbc83954
Ryan Haley
my_turtle.left(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(200)
>>> my_turtle.left(90)
>>> my_turtle.forward(200)
>>> my_turtle.left(90).forward(200)
>>> my_turtle.forward(200)
>>> my_turtle.forward(800)
>>> my_turtle.back(600)
>>> my_turtle.right(90)
>>> my_turtle.forward(400)
>>> my_turtle.righ(90)
>>> my_turtle.right(90)
>>> my_turtle.forward(600)
>>> my_turtle.right(90)
>>> my_turtle.forward(600)
>>> my_turtle.right(90)
>>> my_turtle.forward(600)
>>> my_turtle.right(90)
>>> my_turtle.forward(200)
Mohammad K Mansouri
import turtle


# Make a square with the turtle.



my_turtmy_turtle = turtle.Turtle()
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)



Roberto Torres
https://trinket.io/python/9ad8e2d359
Clumsy Pro
import turtle
my_turtle = turtle.Turtle()
def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)
square(100, 90)
# Make a square with the turtle.
Ahmad Ashraf
>>> my_turtle = turtle.Turtle()
>>> 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)
Thomas Liebig
import turtle

my_turtle = turtle.Turtle()
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)
Wong Xien Hean
#square
import turtle
my_turtle = turtle.Turtle()
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)
my_turtle.right(90)
Arief Rosadi
import turtle
my_turtle = turtle.Turtle()
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)
my_turtle.right(90)

turtle.done()
kazi Farhan
https://repl.it/Eyi1/2
Jake Sencenbaugh
what is wrong with my 2nd line?
import turtle
>>>my_turtle = turtle.Turtle()
>>> 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)
Jake Sencenbaugh
it says bad input
Raja Vamshi Chatharasi
me too
Kaven Wong Xien Hean
you guys need to delete the >>>
we only need
my_turtle.left(90)

Is Not
>>> my_turtle.Left(90)

Kaven Wong Xien Hean
https://repl.it/Eyhm/0
Ronnie Antony
import turtle
myTurtle = turtle.Turtle()
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
Sebastian Gomez
https://repl.it/EyLF/4
Norman Lumago
Really cool
I tried out the Triangle and Benzene ring, it wasn't as easy as i thought!!!
Thanks for this Qazi
Cheers
Eduardo Padilla
https://repl.it/Exsl/0
David Tassignon
import turtle
my_turtle = turtle.Turtle()
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)
Nathan Wagner
import turtle


# Make a square with the turtle.
my_turtle = turtle.Turtle()
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)
Wojciech Gwardjak
https://repl.it/Exkv/0
karthik sundar
import turtle


# Make a square with the turtle.
my_turtle = turtle.Turtle()
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)
Devansh Lodha
>>> import turtle
>>> my_turtle=turtle.Turtle()
>>> 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)
>>>
HimaBindhu Chilumulla
# Make a square with the turtle.

import turtle
my_turtle = turtle.Turtle()
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)

Jason
import turtle

turt = turtle.Turtle()
turt.pencolor("red")
turt.speed(0)


#Draw J
turt.penup()
turt.setposition(-200, 0)
turt.pendown()

turt.forward(50)
turt.left(90)
turt.forward(100)
turt.left(90)
turt.forward(50)
turt.right(180)
turt.forward(100)

#Draw A
turt.pencolor("blue")

turt.penup()
turt.setposition(-95, 0)
turt.pendown()

turt.left(90)
turt.forward(100)
turt.right(90)
turt.forward(75)
turt.right(90)
turt.forward(100)
turt.right(180)
turt.forward(50)
turt.left(90)
turt.forward(75)

#Draw S
turt.pencolor("orange")

turt.penup()
turt.setposition(-5,0)
turt.pendown()

turt.right(180)
turt.forward(75)
turt.left(90)
turt.forward(50)
turt.left(90)
turt.forward(75)
turt.right(90)
turt.forward(50)
turt.right(90)
turt.forward(75)

#Draw O
turt.pencolor("green")

turt.penup()
turt.setposition(75,0)
turt.pendown()

for i in range(2):
turt.forward(75)
turt.left(90)
turt.forward(100)
turt.left(90)

#Draw N
turt.pencolor("yellow")

turt.penup()
turt.setposition(155, 0)
turt.pendown()

turt.left(90)
turt.forward(100)
turt.right(145)
turt.forward(120)
turt.left(145)
turt.forward(100)

turtle.done()
Homin Lee
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.left(180)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
Luta Albert
my_turtle=turtle.Turtle()
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)
Moin Raza
my_turtle=turtle.Turtle()
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)
abishek bm
my_turtle = turtle.turtle()
>>> my_turtle = turtle.Turtle()
>>> 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.forward(100)
>>>
Harshit Chaturvedi
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)
my_turtle.left(90)
my_turtle.forward(60)
manuel perrotta
my_turtle = turtle.Turtle ()
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.done
Hamza Sa'ad
import turtle


my_turtle = turtle.Turtle()
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)

Hatim Elsadig Elamin Elhag
https://repl.it/Ew7X/0
Dallas Snook
import turtle
my_turtle = turtle.Turtle()
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)
Juan Jose Rios Jr
import turtle


# Make a square with the turtle.
turtle = turtle.Turtle()
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
Bùi Xuân Bảo Danh
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
Nikhat shaikh
jimi=turtle.Turtle()
jimi.forward(50)
jimi.left(90)
jimi.forward(50)
jimi.left(90)
jimi.forward(50)
jimi.left(90)
jimi.forward(50)
turtle.done()
Rafeh Qazi
Nice job writing a script and using turtle.done! But I think you should write jimi.done(), no?
Will Shepard
what is turtle.done
Muneeb Rehman
Nothing
Aly Abo Ouf
import turtle

my_turtle=turtle.Turtle()
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)
ajinkya kamdi
my_turtle=turtle.Turtle()
my_turtle.forward(80)
my_turtle.left(60)
my_turtle.forward(50)
my_turtle.left(30)
my_turtle.forward(70)
my_turtle.left(60)
my_turtle.forward(40)
my_turtle.left(30)
my_turtle.forward(80)
my_turtle.left(30)
my_turtle.forward(40)
my_turtle.left(180-120)
my_turtle.forward(70)
my_turtle.left(30)
my_turtle.forward(50)
my_turtle.left(60)
my_turtle.forward(70)
my_turtle.left(180)
my_turtle.forward(70)
my_turtle.right(60)
my_turtle.forward(50)
my_turtle.right(90)
my_turtle.forward(30)
my_turtle.right(180)
my_turtle.forward(15)
my_turtle.left(120)
my_turtle.forward(30)
my_turtle.left(20)
my_turtle.forward(35)
my_turtle.left(20)
my_turtle.forward(35)
my_turtle.left(30)
my_turtle.forward(30)
my_turtle.right(90)
my_turtle.forward(15)
my_turtle.right(180)
my_turtle.forward(30)
my_turtle.right(180)
my_turtle.forward(15)
my_turtle.right(90)
my_turtle.forward(60)
my_turtle.right(180-140)
my_turtle.forward(30)
my_turtle.right(45)
my_turtle.forward(35)
my_turtle.right(45)
my_turtle.left(58)
my_turtle.forward(20)
my_turtle.left(70)
my_turtle.forward(16)
my_turtle.left(90)
my_turtle.left(143)
my_turtle.forward(60)
my_turtle.right(90)
my_turtle.forward(35)
my_turtle.right(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(30)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(30)
my_turtle.left(180)
my_turtle.forward(30)
my_turtle.right(90)
my_turtle.forward(10)
my_turtle.left(90)
my_turtle.forward(20)
my_turtle.left(90)
my_turtle.forward(10)
my_turtle.right(90)
my_turtle.forward(30)
my_turtle.right(90)
my_turtle.forward(20)
my_turtle.right(90)
my_turtle.forward(30)
my_turtle.right(90)
my_turtle.forward(20)
my_turtle.right(90)
my_turtle.forward(65)
my_turtle.right(180)
my_turtle.forward(65)
my_turtle.left(90)
my_turtle.forward(10)
my_turtle.right(90)
my_turtle.forward(10)
my_turtle.left(60)
my_turtle.forward(45)
my_turtle.left(180-60)
my_turtle.forward(45)
my_turtle.left(180-60)
my_turtle.forward(45)
Tamilisetti Chakradhar
import turtle
my_turtle= turtle.Turtle()
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
Louie Jay D. NIngasca
import turtle
Louie = turtle.Turtle()
Louie.forward(100)
Louie.right(90)
Louie.forward(100)
Louie.right(90)
Louie.forward(100)
Louie.right(90)
Louie.forward(100)
Louie.right(90)
Tom Schiffer
my_turtle = turtle.Turtle()
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)

seems like im not the only one using this one :D
Alexander Perelman
import turtle
my_turtle = turtle.Turtle()
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)
Seth Satterwhite
https://repl.it/EwKJ/2
Rocelio Garcia

import turtle
fuck = turtle.Turtle()
for i in range(50):
fuck.forward(100)
fuck.left(170)

turtle.done()
Dannaezar
https://trinket.io/python/7a99988330
James Goguen
import turtle

# Make a square with the turtle.

my_turtle = turtle.Turtle()
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)
Rohan
import turtle
my_turtle = turtle.Turtle()
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)
Teju Reddy
>>> import turtle
>>>
>>> rabit = turtle.Turtle()
>>>
>>> rabit.forward(50)
>>> rabit.right(90)
>>>
>>> rabit.forward(50)
>>> rabit.right(90)
>>>
>>> rabit.forward(50)
>>> rabit.right(90)
>>>
>>> rabit.forward(50)
>>> rabit.right(90)
>>>
>>> rabit.forward(50)
>>> rabit.right(90)
>>>
>>> turtle.done()
Amir Mahmood
import turtle
my_turtle= turtle.Turtle()

for i in range(0,4):
my_turtle.forward(100)
my_turtle.left(90)

Rodrigo Pedetti
https://trinket.io/python/511924e433
Nahian Eshan
https://repl.it/EupE/0
haqeem
>>> my_turtle = turtle.Turtle()
>>> 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)
Noah
my_turtle = turtle.Turtle()
>>> 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)
Joren aerts
import turtle
my_turtle = turtle.Turtle()
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)

Richard Harding
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
Aryan Arora
import turtle
my_turtle=turtle
my_turtle.forward(74)
my_turtle.left(90)
my_turtle.forward(74)
my_turtle.left(90)
my_turtle.forward(74)
my_turtle.left(90)
my_turtle.forward(74)
Elliot Barnett
https://trinket.io/python/5793e497b0
oliver jensen
import turtle
my_turtle = turtle
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)
Chaithra.l
https://repl.it/Etuj/0
Sasa Antal
I wrote my first letter of name.
import turtle
my_turtle = turtle
my_turtle.forward(100)
my_turtle.back(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
Artur Janiak
import turtle

fastTurtle = turtle.Turtle()
for i in range(4):
fastTurtle.forward(100)
fastTurtle.right(90)
fastTurtle.done
patrick mich
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
Brendon Dsilva
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
Will Shepard
https://repl.it/EtQJ/1
Xerxes
import turtle
my_turtle = turtle.Turtle ()
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)
Kyle Allen Haines
>>> import turtle
>>>
>>>
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
Marko Milovanovic
>>> my_turtle=turtle.Turtle()
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> v
Traceback (most recent call last):
File "", line 1, in
v
NameError: name 'v' is not defined
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
Casey Waggoner
https://repl.it/EtB6/0
TACO
my_turtle=turtle.Turtle()
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)
St
import turtle


# Make a square with the turtle.
# with space...
import turtle

my_turtle = turtle.Turtle()

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)

my_turtle.right(45)

my_turtle.forward(75)

my_turtle.right(95)

my_turtle.forward(70)

my_turtle.right(40)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(40)

my_turtle.right(90)

my_turtle.forward(18)

my_turtle.left(90)

my_turtle.forward(10)

my_turtle.left(90)

my_turtle.forward(18)

my_turtle.right(90)

my_turtle.forward(70)

St
import turtle
# :) my house
my_turtle=turtle.Turtle()

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)
my_turtle.right(45)
my_turtle.forward(75)
my_turtle.right(95)
my_turtle.forward(70)
my_turtle.right(40)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(40)
my_turtle.right(90)
my_turtle.forward(18)
my_turtle.left(90)
my_turtle.forward(10)
my_turtle.left(90)
my_turtle.forward(18)
my_turtle.right(90)
my_turtle.forward(70)

Jason Sweetman
https://repl.it/Esmk/0
Robin Mendosa
import turtle

hey=turtle.Turtle()
hey.forward(100)
hey.left(90)
hey.forward(100)
hey.left(90)
hey.forward(100)
hey.left(90)
hey.forward(100)
sonam chophel
import turtle
turtle=turtle.Turtle()
for i in range(4):
turtle.forward (100)
turtle.right (90)
sean gillespey
import turtle


# Make a square with the turtle.

joe = turtle.Turtle()

joe.forward(90)
joe.left(45)
joe.forward(15)
joe.left(45)
joe.forward(90)
joe.left(45)
joe.forward(15)
joe.left(45)
joe.forward(90)
joe.left(45)
joe.forward(15)
joe.left(45)
joe.forward(90)
joe.left(45)
joe.forward(15)
joe.left(45)
Charles Jefferson A. Samontina
ad = turtle.Turtle ()

ad.forward(100)
ad.left(90)

ad.forward(100)
ad.left(90)

ad.forward(100)
ad.left(90)
ad.forward(100)

turtle.done()
Walead Khaled Badri
>>> import turtle
>>> my_turtle = turtle.Turtle()
(I understand this command preview the turtle, but what does the command stand for? Thanx in advance)
>>> 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)
Martin Lustig
https://repl.it/Es3H/0
Cooper Mann
https://repl.it/Es10/0
Donny Ha
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)
Åsmund Kirkevold
import turtle
my_turtle = turtle.Turtle()
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)
Mats Ove Vada
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(90)
my_turtle.right(180)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(90)
my_turtle.right(180)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(90)
my_turtle.right(180)
my_turtle.forward(90)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(90)

# Make a square with the turtle.
DONA DENNISON
import turtle
my_turtle=turtle.Turtle()
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)
Alexa
import turtle

myturtle = turtle.Turtle()

myturtle.forward(100)

myturtle.left(90)

myturtle.forward(100)

myturtle.left(90)

myturtle.forward(100)

myturtle.left(90)

myturtle.forward(100)
Tim Lange
import turtle
my_turtle = turtle.Turtle()
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)
Tim Lange
my_turtle = turtle.Turtle()
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)
Mohd Syameer Abdul Wahab
import turtle
my_turtle = turtle.Turtle ()
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)
Adam Bessisso
https://repl.it/Equh/0
Nick Nabors
https://repl.it/Eq7B/0
RUCHI VADSOLA
import turtle
my_turtle=turtle.Turtle()
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
Federico Cassano
import turtle

collen_the_turtle = turtle.Turtle()

def square():
for i in range(4):
collen_the_turtle.forward(100)
collen_the_turtle.right(90)


square()
Moni AlFlahi
https://repl.it/Eo15/0
Thomas Hugh Doherty
import turtle
my_turtle = turtle.Turtle()
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)
Kyle Judd
my_turtle = turtle.Turtle()
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)
Daniel Marin
https://repl.it/languages/python3
Teiuseanu Sebastian Florin
import turtle
my_turtle = turtle.Turtle()
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)
Alexander Helms
import turtle


my_turtle = turtle.Turtle()
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.right(90)
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(200)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
Abboud Mahmi
import turtle

dodo = turtle.Turtle()

for i in range(4):
dodo.forward(100)
dodo.left(90)

# Make a square with the turtle.
Besender Moise
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.foward(100)
my_turtle.left(90)
my_turtle.forward(100)
Thabo Modisegmail.com
Cool one bro!
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
my_turtle.left(90)
my_turtle.forward(200)
riya
# circle of squares

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(1,100):
square(50,90)
my_turtle.left(i)
Suranjan Dey
# Make a octagon with the turtle.
import turtle
my_turtle = turtle.Turtle()
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)
my_turtle.left(45)
my_turtle.forward(50)

Hammad Rathor
import turtle
my_turlte = turtle.Turtle()
my_turlte.forward(100)
my_turlte.right(90)
my_turlte.forward(100)
my_turlte.right(90)
my_turlte.forward(100)
my_turlte.right(90)
my_turlte.forward(100)


# Make a square with the turtle.
Austyn
https://repl.it/Em2T/0
riya
print("hello\nmy name is riya")
print("i enjoy coding turtle graphics\n")
riya
import turtle


# Make a square with the turtle.
my_turtle = turtle.Turtle()
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)
i made a square
Kit Sum Pang
https://repl.it/Elhi/0
mustafa
made a 3D room with the turtle


import turtle
my_turtle = turtle.Turtle()
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.right(45)
my_turtle.forward(50)
my_turtle.left(135)
my_turtle.forward(170)
my_turtle.left(135)
my_turtle.forward(50)
my_turtle.right(45)
my_turtle.forward(100)
my_turtle.right(45)
my_turtle.forward(50)
my_turtle.left(135)
my_turtle.forward(170)
my_turtle.left(135)
my_turtle.forward(50)
my_turtle.left(180)
my_turtle.forward(50)
my_turtle.left(135)
my_turtle.forward(170)
my_turtle.left(90)
my_turtle.forward(170)
my_turtle.left(90)
my_turtle.forward(170)
Lyubomir Ivelinov Petrakiev
import turtle
my_turtle = turtle.Turtle()
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)
Lucian
First time i did a square but after a while I did try to play a little....So i create a cube i guess :). Sorry for my poor english.


import turtle

my_turtle = turtle.Turtle()
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(135)
my_turtle.forward(35)
my_turtle.right(45)
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.penup()
my_turtle.forward(100)
my_turtle.right(135)
my_turtle.pendown()
my_turtle.forward(35)
my_turtle.left(180)
my_turtle.penup()
my_turtle.forward(35)
my_turtle.left(45)
my_turtle.forward(100)
my_turtle.left(135)
my_turtle.pendown()
my_turtle.forward(35)
my_turtle.right(45)
my_turtle.forward(100)
my_turtle.right(135)
my_turtle.forward(35)
hussein hassan
These are the commands that i used.

import turtle
my_turtle= turtle.Turtle()
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)
Ze At
import turtle
my_turtle = turtle.Turtle()
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)
Jonathan
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> my_turtle.backward(90)
>>> my_turtle.left(90)
>>> my_turtle.forward(90)
>>> tr = my_turtle
>>> tr.left(270)
>>> tr.forward(90)
>>> tr.left(90)
>>> tr.backward(90)
Tobias Foldager Kvols
import turtle
Tobe=turtle
Tobe.forward(100)
Tobe.left(90)
Tobe.forward(100)
Tobe.left(90)
Tobe.forward(100)
Tobe.left(90)
Tobe.forward(100)
Tobe.left(90)
Eileen Liu
import turtle
eddie = turtle.Turtle()
for i in range(4):
eddie.forward(100)
eddie.right(90)
Elian Barajas
import turtle

my_turtle = turtle.Turtle()
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.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.left(90)
my_turtle.forward(50)
my_turtle.right(180)
my_turtle.forward(100)
my_turtle.left(180)
my_turtle.forward(50)
my_turtle.right(90)
my_turtle.forward(50)
Tayseer
>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
>>>
Tayseer
>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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(
satyam shah

>>> import turtle
>>> my_turtle = turtle.Turtle()
>>> 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)
>>>
Fortune
import turtle
squ= turtle.Turtle()
for i in range(4):
squ.forward(200)
squ.left(90)
print("Gottcha")
turtle.done()
Nurnayli Athirah
my_turtle = turtle.Turtle()
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)
Gary Lynch
import turtle
my_turtle = turtle.Turtle()
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)
gokulakrishnan
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.right(90)
>>> my_turtle.left(180)
>>> my_turtle.forward(100)
>>> my_turtle.right(90_

SyntaxError: invalid syntax
>>>
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>>
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>> my_turtle.right(90)
>>> my_turtle.forward(100)
>>>
KeyboardInterrupt
>>> my_turtle.backward(100)
>>>
KeyboardInterrupt
>>> my_turtle.left(45)
>>> my_turtle.forward(100)
>>> my_turtle.forward(100)
João
Did you import the turtle and defined my_turtle?
Rafeh Qazi
Hmm, why do you have keyboard interrupts and syntax errors?
Hafiz bin onn
Made a cube, is that over the top?

import turtle


# Make a square with the turtle.
my_turtle = turtle.Turtle()
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 (180)
my_turtle.forward (100)
my_turtle.right (45)
my_turtle.forward(50)
my_turtle.right (45)
my_turtle.forward (100)
my_turtle. right (90)
my_turtle. forward (100)
my_turtle.right(42)
my_turtle.forward (50)
my_turtle.backward(50)
my_turtle.left(42)
my_turtle.backward(100)
my_turtle.right(225)
my_turtle.backward(50)
turtle.done()
João
Really nice man. When you get to loops, you gonna love it.
Rafeh Qazi
Dang. You got fancy with this one! Way to go!
Tharanga Mendis
import turtle
>>>
>>>
>>> my_turtle = turtle.turtle()
Traceback (most recent call last):
File "", line 1, in
my_turtle = turtle.turtle()
AttributeError: module 'turtle' has no attribute 'turtle'
>>> my_turtle = turtle.Turtle()
>>> my_turtle = forward(100)
Traceback (most recent call last):
File "", line 1, in
my_turtle = forward(100)
NameError: name 'forward' is not defined
>>> my_turtle.forwaed(100)
Traceback (most recent call last):
File "", line 1, in
my_turtle.forwaed(100)
AttributeError: 'Turtle' object has no attribute 'forwaed'
>>> 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)
birajkarki
>>> import turtle
>>>
>>> my_turtle = turtle.Turtle()
>>> 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)
>>>
Rafeh Qazi
Looks good
Daniel Miller
import turtle
myturtle = turtle.Turtle()
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)
myturtle.left(90)
myturtle.forward(100)
Rafeh Qazi
Beautiful!
João
import turtle

t = turtle.Turtle()

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)
t.right(y)

square(100,90)
Rafeh Qazi
Did it work!? Looks like it should have.
João
It did.
Rafeh Qazi
Nice! You are the first person with a profile picture haha!
Tre Martin
import turtle
my_turtle=turtle.Turtle()
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)
Rafeh Qazi
Looks good to me Tre!
Chris
import turtle


my_turtle = turtle.Turtle()
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)
Rafeh Qazi
Yup that looks better.
Chris
>>> my_turtle = turtle.Turtle()
>>>
>>>
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> my_turtle.forward(100)
>>> my_turtle.left(90)
>>> myturtle.forward(100)
Traceback (most recent call last):
File "", line 1, in
myturtle.forward(100)
NameError: name 'myturtle' is not defined
>>> my_turtle.forward(100)
>>>
Rafeh Qazi
This is the problem.
myturtle.forward(100) 


Supposed to be
my_turtle.forward(100) 


You are just missing the underscore.
Felipe Montoya
>>> import turtle

>>> new_turtle = turtle.Turtle()

>>> new_turtle.forward(100)

>>> new_turtle.left(90)

>>> new_turtle.forward(100)

>>> new_turtle.left(90)

>>> new_turtle.forward(100)

>>> new_turtle.left(90)

>>> new_turtle.forward(100
Rafeh Qazi
That is right @Felipe! You are just missing a parenthesis at the end there!