NKoder
0
Q:

how to use turtle python

import turtle
#making the turtle
t = turtle.Turtle()
#commands
t.forward(10)
t.colour('green')
t.left(90)
t.penup()
t.goto(0,0)
t.pendown()
for i in range(45): #circle
  t.forward(1)
  t.right(8)
for i in range(3): #Triangle
  t.forward(10)
  t.left(135)
1
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
    forward(200)
    left(170)
    if abs(pos()) < 1:
        break
end_fill()
done()
4

New to Communities?

Join the community