# Drawing of Durga Mata with Python Code

**Drawing Mata Durga with Python Code
**

**Durga Puja is one of the most celebrated festivals in Bharat, especially in the state of West Bengal. It’s a time of great joy and festivity when people come together to worship Goddess Durga. In this blog post, we will show you how to create a beautiful representation of Mata Durga using Python’s Turtle graphics library.
**

**Full Code to Draw Mata Durga;
**

from turtle import *title("Durga Ma 'StudyMuch'")bgcolor("white")speed(0)def pos(x, y):penup()goto(x, y)pendown()pos(0, 200)begin_fill()circle(30)color("brown1")end_fill()# left eyebrowcolor("black")pos(-30, 200)begin_fill()right(45)for i in range(20):left(3)back(10)for i in range(10):right(3)back(10)right(18)for i in range(13):left(3)forward(10)for i in range(20):right(2)forward(10)end_fill()# right eyebrowleft(80)pos(30, 200)begin_fill()for i in range(20):right(3)forward(10)for i in range(10):left(3)forward(10)left(18)for i in range(13):right(3)back(10)for i in range(20):left(2)back(10)end_fill()# right eyepos(40, 150)pensize(15)left(10)for i in range(20):right(3)forward(10)for i in range(10):left(3)forward(5)right(3)for i in range(10):left(3)back(5)for i in range(20):right(3)back(10)pensize(1)pos(130, 130)begin_fill()circle(40)end_fill()color('white')begin_fill()pos(115, 175)circle(10)end_fill()# left eyepos(-40, 150)color('black')pensize(15)right(25)for i in range(20):left(3)back(10)for i in range(10):right(3)back(5)left(3)for i in range(10):right(3)forward(5)for i in range(20):left(3)forward(10)pensize(1)pos(-130, 130)begin_fill()circle(40)end_fill()color('white')begin_fill()pos(-155, 175)circle(10)end_fill()# nosecolor('black')pos(-60, 10)right(70)for i in range(5, 12):pensize(i)left(7)forward(10)for i in range(12, 5, -1):pensize(i)left(7)forward(10)# lipscolor("red")begin_fill()pos(-130, -90)pensize(1)begin_fill()right(60)for i in range(3):left(3)forward(5)for i in range(10):left(4)forward(6)for i in range(10):right(10)forward(7)left(135)for i in range(10):right(10)forward(7)right(2)for i in range(10):left(4)forward(6)for i in range(3):left(3)forward(5)right(160)for i in range(12):right(3)forward(7.2)left(44)for i in range(15):right(5.5)forward(7)left(44)for i in range(12):right(3)forward(7)end_fill()# lower lipbegin_fill()left(175)for i in range(14):left(2)forward(5)right(45)for i in range(14):left(7)forward(10)right(45)for i in range(14):left(3)forward(5)right(185)for i in range(7):left(3)forward(10)right(0.6)for i in range(18):right(6)forward(10)right(8)for i in range(7):left(3)forward(10)end_fill()# nose ringpensize(7)color("goldenrod")pos(30, -7)left(100)for i in range(47):right(7)back(8)hideturtle()done()

**Code Description
**

**We have provided the Python source code to draw Mata Durga, and we will walk you through the code step by step.
**

**Setting up the Environment
**

**Before we begin drawing Mata Durga, you need to set up your Python environment. Make sure you have Python and the Turtle graphics library installed.
**

from turtle import *title("Durga Ma 'StudyMuch'")bgcolor("white")speed(0)

**In the code above, we import the Turtle module, set the window title to “Durga Ma ‘StudyMuch’“, set the background color to white, and set the drawing speed to 0 (fastest).
**

**Drawing Mata Durga’s Face
**

**Let’s start drawing Mata Durga’s face.
**

def pos(x, y):penup()goto(x, y)pendown()pos(0, 200)begin_fill()circle(30)color("brown1")end_fill()

**We define a helper function pos(x, y) to move the pen to a specific position. Then we draw a circle for Mata Durga’s face and color it using the color method.
**

**Drawing the Eyebrows
**

**Mata Durga’s eyebrows are an important part of her face. We draw the left eyebrow first:
**

# left eyebrowcolor("black")pos(-30, 200)begin_fill()right(45)for i in range(20):left(3)back(10)# ... (more code for the left eyebrow)end_fill()

**We use the right() and left() methods to position the pen correctly and draw the left eyebrow. Similar code is used to draw the right eyebrow.
**

**Drawing the Eyes
**

**The eyes are an essential part of any deity’s representation. We draw the right eye first:
**

# right eyepos(40, 150)pensize(15)left(10)for i in range(20):right(3)forward(10)# ... (more code for the right eye)pensize(1)

**We use the pensize() method to set the pen’s size, ensuring that the eye stands out. ****The left eye is drawn similarly.
**

**Drawing the Nose and Lips
**

**Now, let’s draw Mata Durga’s nose and lips:
**

# nosecolor('black')pos(-60, 10)right(70)for i in range(5, 12):pensize(i)left(7)forward(10)# ... (more code for the nose)# lipscolor("red")begin_fill()pos(-130, -90)pensize(1)begin_fill()right(60)for i in range(3):left(3)forward(5)# ... (more code for the lips)end_fill()

**The nose and lips are drawn by adjusting the pen size, color, and direction using a series of left(), right(), forward(), and back() commands.
**

**Completing the Drawing
**

**To complete the drawing, we need to add a few finishing touches:
**

# lower lipbegin_fill()# ... (more code for the lower lip)end_fill()# nose ringpensize(7)color("goldenrod")pos(30, -7)left(100)for i in range(47):right(7)back(8)# Hide the Turtle and finish drawinghideturtle()done()

**The lower lip and nose ring are drawn similarly, and we finish the drawing by hiding the Turtle and calling done().
**

**By running this code, you can create a beautiful representation of Mata Durga, perfect for celebrating Durga Puja. So in this post you have learn Drawing of Durga Mata with Python Code, feel free to modify the code or add more details to make it even more special. Happy Durga Puja!
**

**View More:
**

## 0 Comments