Indian Flag using Python Turtle || Crazycoder

Crazycoder



Indian Flag using Python Turtle || Crazycoder


The National Flag of India is a horizontal rectangular tricolour of India saffron, white and India green; with the Ashoka Chakra, a 24-spoke wheel, in navy blue at its centre
 


//www.crazycoder.tech
import turtle
screen=turtle.Screen()
t=turtle.Turtle()
screen.title("India's flag || crazycoder  ")
t.shape()
t.speed(-1)
t.penup()
t.goto(-700,350)
t.pendown()
t.color("orange")
t.begin_fill()
t.forward(1400)
t.right(90)
t.forward(233)
t.right(90)
t.forward(1400)
t.end_fill()
t.left(90)
t.forward(233)
t.color("green")
t.begin_fill()
t.forward(233)
t.left(90)
t.forward(1400)
t.left(90)
t.forward(233)
t.end_fill()
t.penup()
t.goto(80,0)
t.penup()
t.color("navy")
t.begin_fill()
t.circle(80)
t.end_fill()
t.penup()
t.goto(700)
t.pendown()
t.color("white")
t.begin_fill()
t.circle(70)
t.end_fill()
t.penup()
t.goto(-66,9)
t.pendown()
t.color("navy")
for i in range(24):
    t.speed(-100)
    t.begin_fill()
    t.circle(4.5)
    t.end_fill()
    t.penup()
    t.right(15)
    t.forward(17.5)
    t.pendown()
t.penup()
t.goto(0,0)
t.pendown()
t.pensize(3)

for i in range(24):
    t.forward(60)
    t.backward(60)
    t.left(15)




turtle.done()



Every free nation of the world has its own flag. It is a symbol of a free country. The National Flag of India was adopted in its present form during the meeting of Constituent Assembly held on the 22 July 1947, a few days before India's independence from the British on 15 August, 1947. It served as the national flag of the Dominion of India between 15 August 1947 and 26 January 1950 and that of the Republic of India thereafter. In India, the term "tricolour" refers to the Indian national flag.


The National flag of India is a horizontal tricolor of deep saffron (kesari) at the top, white in the middle and dark green at the bottom in equal proportion. The ratio of width of the flag to its length is two to three. In the centre of the white band is a navy blue wheel which represents the chakra. Its design is that of the wheel which appears on the abacus of the Sarnath Lion Capital of Ashoka. Its diameter approximates to the width of the white band and it has 24 spokes.











Crazycoder