This website contains code
This website will teach you how to code in Python.Alright so frist the line of code you write is
from turtle import Turtle
Then you go down 1 line a put and here you will name your turtle
t = Turtle()
lets make the turtle loop
for i in range(10):
Then lets make you turtle move so you will put
t.fd(90)
then the turtle will turn
t
t.lt(90)
Then lets do that again but left
for i in range
t.fd(90)
t.lt(90)
But just remember to tab any thing under for i in range(5):
exept for that code
Heres an example beow
Aright so you got the basics of your code so now will do some "Print Staments" so just to start you always write
print
then you put
"your text"
so you should be left with
print "your text"
Long Term | Short Term |
---|---|
forward | fd |
right | rt |
left | lt |