Answers for "how to write on turtle screen"

3

how to add text in python turtle

import turtle

turtle.color(' black')
style = ('Arial', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
turtle.hideturtle()
Posted by: Guest on August-12-2020
2

with font type stuff python turtle

import turtle

pen = turtle.Turtle()

pen.write("Python is cool", font=("Calibri", 8, "bold"))
Posted by: Guest on April-29-2020
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

turtle screen

import turtle
import random

window = turtle.Screen()

tortuga = turtle.Turtle()

tortuga.speed(1)


window.exitonclick()
Posted by: Guest on July-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language