top of page
undraw_blank_canvas_3rbb-removebg-previe

Draw Indian Flag Using Python

Source Code

import turtle

from turtle import*


 

screen = turtle.Screen()

 

t = turtle.Turtle()

speed(0)

 

t.penup()

t.goto(-400, 250)

t.pendown()


 

t.color("orange")

t.begin_fill()

t.forward(800)

t.right(90)

t.forward(167)

t.right(90)

t.forward(800)

t.end_fill()

t.left(90)

t.forward(167)


 

t.color("green")

t.begin_fill()

t.forward(167)

t.left(90)

t.forward(800)

t.left(90)

t.forward(167)

t.end_fill()

 

t.penup()

t.goto(70, 0)

t.pendown()

t.color("navy")

t.begin_fill()

t.circle(70)

t.end_fill()


 

t.penup()

t.goto(60, 0)

t.pendown()

t.color("white")

t.begin_fill()

t.circle(60)

t.end_fill()

 

t.penup()

t.goto(-57, -8)

t.pendown()

t.color("navy")

for i in range(24):

    t.begin_fill()

    t.circle(3)

    t.end_fill()

    t.penup()

    t.forward(15)

    t.right(15)

    t.pendown()

    

# Small Blue Circle

t.penup()

t.goto(20, 0)

t.pendown()

t.begin_fill()

t.circle(20)

t.end_fill()

# Spokes

t.penup()

t.goto(0, 0)

t.pendown()

t.pensize(2)

for i in range(24):

    t.forward(60)

    t.backward(60)

    t.left(15)

turtle.done()

Address

60 Feet Road ,Jawahar Colony ,Faridabad,Haryana,India.

Call Us

9250737444

Email Us

Open Hours

Monday - Friday
8:00AM - 03:00PM

Enquiry Now

Your content has been submitted

An error occurred. Try again later

Contact Us

Contact

Address:-
60 Feet Road ,Jawahar Colony ,Faridabad,Haryana,India.

Contact
9250737444

Academics :

  • CO-CURRICULAR ACTIVITIES

  • ACADEMIC SUPERVISION

  • CAREER COUNSELLING

  • SOCIETY

Important  Link

bottom of page