Answers for "python turtle default direction"

4

how to make a screen in turtle

def turtle_triangle():
    window = turtle.Screen()
    window.bgcolor("red")
    
    brad = turtle.Turtle()
    
    brad.shape("turtle")
    brad.color("yellow")
    brad.speed(1)

    for _ in range(3):
        brad.right(60)
        brad.forward(200)
        brad.right(60)

    window.exitonclick()
Posted by: Guest on January-05-2020
0

python turtle set direction

>>> turtle.setheading(90)
>>> turtle.heading()
90.0
#Set the number in set heading to the direction you want the turtle to face.
Posted by: Guest on March-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language