Draw INDIAN Flag by Python Turtle with Source Code


LET'S DROW THE INDIAN FLAG:

  • Copy this code to the right-top corner and past your python compiler.
  • Then past in your file.py.
  • Run code
  • See Magic 

 Code to Draw INDIAN FLAG : 

import turtle

flag = turtle.Turtle() 

flag.speed(3) #FAST SPEED
flag.pensize(5) #MAKE PEN SIZE BOLD 
flag.color('#000080') 

def draw(x, y):
    flag.penup()
    flag.goto(x,y)
    flag.pendown()

#WE NEED 3 PART 1.Ashoka Chakra 2.Green Rectangle 3.Orange Rectangle

#Ashoka Chakra
for i in range(24):
    flag.forward(80)
    flag.backward(80)
    flag.left(15)
draw(0, -80)
flag.circle(80, 360)

draw(0,-90)

#Green Rectangle
flag.color('#138808')
flag.begin_fill()

flag.forward(350)
flag.backward(700)
flag.right(90)
flag.forward(200)
flag.left(90)
flag.forward(700)
flag.left(90)
flag.forward(200)
flag.left(90)

flag.end_fill()


#Orange Rectangle
flag.color('#FF9933')
draw(-350,90)

flag.begin_fill()

flag.right(180)
flag.forward(700)
flag.left(90)
flag.forward(200)
flag.left(90)
flag.forward(700)
flag.left(90)
flag.forward(200)

flag.end_fill()

flag.hideturtle()

turtle.done()#OUTPUT 

OUTPUT :

2021-06-30

For More Amazing Content Subscribe to Our youtube channel: subscribe

How to draw shin chan in python turtle: Watch Video