Answers for "python 3 turtle"

1

turtle beginner python

import turtle
satya = turtle.Turtle()
maan = turtle.Turtle()
#for my satya object
satya.shape("turtle")
satya.color('blue')
distance = 100
satya.forward(distance)
#for my maan object
maan.goto(10,200)


screen = turtle.Screen()
screen.exitonclick()
Posted by: Guest on September-03-2021
0

Python Turtle Example

import turtle
t = turtle.Pen()
t.speed(0)              #drawing speed
t.shape("turtle")
t.pencolor("green")
t.pensize(2)
t.lt(90)               #to make sure turtle is facing north at the start


for x in range (12):
    for y in range (36):
        t.fd(20)
        t.rt(10)
    t.rt(30)
    t.fd(20)
Posted by: Guest on October-18-2021
0

python turtle tutorial

>>> turtle.home()
>>> turtle.dot()
>>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50)
>>> turtle.position()
(100.00,-0.00)
>>> turtle.heading()
0.0
Posted by: Guest on March-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language