Jai Shree Ram, Ram naam using Python Turtle

Yaha apko Jai Shree Ram likha hua, Ram naam 50 bar likha hua python code milta hai, python turtle library ka use kar k hum screen par Jai Shree Ram 50 bar likhne ka command de sakte hai, ye code ko chalane k liye apko python turtle module install karna padega, tab hi ja k ye code run ho payega, turtle install karne ke liye apko apne VScode software ya kisi dusre software k terminal me “pip install turtle” likh k enter marna hoga, jisse apke computer me turtle module install hojayega aur ap ye code asani se run kar paenge, ap bas ab VScode software ya kisi dusre software par copy paste kar k ye code run kar sakte hai aur ap sabhi ko Jai Shree Ram.
Jai Shree Ram, Ram naam using Python Turtle

Jai Shree Ram, Ram naam using Python Turtle

Step 1: turtle module import kare

# turtle module ko import krna
from turtle import*
# title ka naam kya dena chahte ho
title('Jai Shree Ram')
# background color kya dena chahte ho
bgcolor('black')
# pen ka size kitna rakhna chahte ho
pensize(5)
# pen ka color kya rakhna chahte ho
pencolor("orange")


Step 2: Draw 49 bar Jai Shree Ram

# draw 49 bar circle me Jai Shree Ram
Ram_naam = ["जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम"]


Step 3: 360 angle set karna

# 360 angle ko set karna
angle = 360/49
penup()
sety(-1)
for i in range(50):
    left(angle)
    forward(260)
    write(Ram_naam[i], align="right",
font=('Arial',12,"bold"))
    backward(260)


Step 4: Circle k bich me Ram likhna

# circle k bick me ram naam
penup()    
goto(-40,-20)
pendown()
write("|| राम ||", font=("Arial", 60,
"normal"), align="center")
hideturtle()


Pura Code

# turtle module ko import krna
from turtle import*
# title ka naam kya dena chahte ho
title('Jai Shree Ram')
# background color kya dena chahte ho
bgcolor('black')
# pen ka size kitna rakhna chahte ho
pensize(5)
# pen ka color kya rakhna chahte ho
pencolor("orange")
# draw 49 bar circle me Jai Shree Ram
Ram_naam = ["जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम","जय श्री राम","जय श्री राम",
"जय श्री राम","जय श्री राम"]
# 360 angle ko set karna
angle = 360/49
penup()
sety(-1)
for i in range(50):
    left(angle)
    forward(260)
    write(Ram_naam[i], align="right",
font=('Arial',12,"bold"))
    backward(260)

# circle k bick me ram naam
penup()    
goto(-40,-20)
pendown()
write("|| राम ||", font=("Arial", 60,
"normal"), align="center")
hideturtle()
done()


Output:-

Jai Shree Ram, Ram naam using Python Turtle

Video link:- Click kare

aasa hai ki apko is article ko pad kar aur python turtle k throw di gai meri jankari acchi lagi hogi aur apko Jai Shree Ram ka code using kar k maja aya hoga.

Read more: Draw Ram Naam using Python in new style

Humari website dekhne k liye dhanyawad.

एक टिप्पणी भेजें

2 टिप्पणियाँ
* Please Don't Spam Here. All the Comments are Reviewed by Admin.