Answers for "python 3 turtle tutorial"

1

python turtle tutorial

>>> turtle.home()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(50)
>>> turtle.position()
(-0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(120, 180)  # draw a semicircle
>>> turtle.position()
(0.00,240.00)
>>> turtle.heading()
180.0
Posted by: Guest on March-28-2021
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

Python Answers by Framework

Browse Popular Code Answers by Language