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!

262 comments
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!
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