Turtle is a popular graph library used for beginners in Python, which simplifies the process of programming graphics. It's powerful and easy to use, making it an excellent choice for introductory programming and for creating simple games or animations. The turtle module provides the functionality for the turtle graphics window, including navigating the pen across the screen, drawing shapes, and more.

The most basic and frequently used entities in the turtle module are the turtle, the screen, and the window. The turtle represents the pen moving around and drawing on the screen, which is the workspace for drawing. The window is the graphical user interface where the screen is embedded.

Turtle Module Setup
Before you start drawing with the turtle, you need to import the module. Python's turtle module is in the turtle package, so you can import it using the following command:

import turtle
Creating a New Turtle Screen

Once the turtle module is imported, you can create a new screen with the Screen() function.
t = turtle.Screen()
Setting Screen Attributes

The Screen() function returns an object called screen, with which you can set various attributes like background color, title, and more.
t.bgcolor('white') or t.title('Turtle Screen')
Basic Turtle Commands

Now that you've set up the screen, let's dive into some basic turtle commands. Every command, except for the bye() function, can be used with a turtle object as well as with the screen object.
Here are a few essential commands for drawing with a turtle:









forward(distance): Moves the turtle forward by distance units.backward(distance): Moves the turtle backward by distance units.left(angle)andright(angle): Rotates the turtle in place by angle, clockwise or counter-clockwise, respectively.down()andup(): Puts the pen down and lifts it up, respectively. When the pen is down, the turtle draws lines as it moves.
Drawing a Square
As an example, let's use these commands to draw a square. First, set up the screen and create a new turtle:
t = turtle.Screen()
t.title('Drawing Square')
olge = turtle.Turtle()
Now, use the turtle forward, left, and down commands to draw a square:
olge.forward(100)
olge.left(90)
olge.forward(100)
olge.left(90)
olge.forward(100)
olge.left(90)
olge.forward(100)
olge.left(90)
Are you ready to explore more features and create complex designs using the Python turtle module? There's a whole world of creativity waiting for you!