Answers for "how to write with turtle python"

1

how to make turtle object in 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()
print(screen.canvheight)
screen.exitonclick()
Posted by: Guest on September-24-2021
1

python turtle tutorial

>>> turtle.position()
(0.00,240.00)
>>> turtle.setx(10)
>>> turtle.position()
(10.00,240.00)
Posted by: Guest on March-28-2021
0

how do you create a variable in python turtle

import turtle

frank = turtle.Turtle()

frank.shape("turtle")

# then to create a variable you write (you can call your var anything): 

def variable_name():
for i in range(4)
  frank.forward(20)
  frank.right(90)
  
 #then to run this you just right


variable_name()
Posted by: Guest on May-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language