import turtle pen = turtle.Turtle() pen.write("Python is cool", font=("Calibri", 8, "bold"))
Here is what the above code is Doing:
1. We create a turtle object and store it in a variable called pen.
2. We use the write() method of the pen object to write the text “Python is cool” on the screen.
3. We specify the font, size, and style of the text.