#07 Draw Dell Logo using Python Turtle

Опубликовано: 27 Февраль 2026
на канале: Code Freak
203
4

Hello everyone, welcome CodeWithAakarsh YouTube Channel. In this article, we are going to learn to draw a dell logo using python turtle module. This is a very simple and easy design that is easily understandable to all python beginners. The code is explained line by line for easy understanding. The comments are provided in the code for documentation and understanding of each block of code.

For the complete code, you can go to the bottom of the page where you will get the entire code with the output.

So let’s begin to draw a dell logo

Here, we import the turtle module to access its methods and functions in the project. We have created the object t of the turtle.

In this piece of code, we are drawing the circle of the dell logo keeping the pensize of 15. The pen color and color are the same i.e #3287c1. The position of the circle is initialized to goto(20,-200). The circle is of a radius of 180.

In this code block, we have to draw the ‘D of the Dell logo. The position is initialized to goto(-130,-70). The pen size is now changed to 2. The color is initialized to “#3287c1”.Here we have to make use of some inbuilt functions of the turtle.

Penup()=Turtle doesn’t write anything if you use the penup() function.

Pendown()=Turtle operates in pendown() function by default

Setheading()=Turtles pointing direction

Setheading(0)=points to east

Setheading(180)=points to west

Setheading(270)=points to south

Setheading(90)=points to north

Right()=moves the turtle to the right side with the specified angle

Left()=moves the turtle to the left side with the specified angle.

Begin_fill()= Starts filling the object with the specified color.

End_fill()=The end where the color filling completes.

In this piece of code, we have initialized the position of the turtle to goto(-45,-15). Initialized the turtle to setheading(0) and an angle left(35). Started drawing E with a distance of 65. The angle of right(90) and draw the small lines in E with a distance of 20. Inner lines in ‘E’ is provided with a distance of 50.

In this piece of code, we have to draw the L logo of the dell using a python turtle. The position is initialized to goto(40,-70). The L is drawn by providing the specified distance and angle.

Here, we have to draw the 2nd L of the dell Logo. It is drawn in a similar way as the first ‘L’ the only change is in the position of the turtle i.e goto(110,-70).

Thanks For Watching .😊