#4n: Coding in Python{PYTHON'S ICON & INDIAN FLAG}

import turtle as t
t.bgcolor(0,0,0)
t.speed(5)
def curve():
import turtle as t
t.speed(5)
for i in range (12):
t.right(-15)
t.fd(20)
def curve2():
import turtle as t
t.speed(0)
for i in range (12):
t.right(15)
t.fd(20)
t.penup()
t.fd(-100)
t.right(90)
t.pendown()
t.color(0.8,0.8,0)
t.begin_fill()
t.fd(-50)
t.fd(100)
curve()
t.fd(30)
t.right(-90)
t.fd(75)
t.right(180)
t.fd(75+50)
curve()
t.fd(30)
t.right(-90)
t.fd(60)
t.circle(-15,90)
t.fd(122)
t.circle(15,90)
t.fd(75)
t.fd(-15)
t.right(90)
t.end_fill()
t.color('Blue')
t.begin_fill()
t.fd(50)
curve2()
t.fd(30)
t.fd(75)
t.fd(-75)
t.right(-90)
t.fd(50)
curve2()
t.fd(32)
t.fd(60)
t.circle(-15,90)
t.fd(122)
t.circle(15,90)
t.fd(60)
t.end_fill()
t.width(5)
t.color('White')
t.fd(51)
curve()
t.fd(30)
t.right(-90)
t.fd(75)
t.right(180)
t.fd(75+50)
curve()
t.fd(30)
t.right(-90)
t.fd(60)
t.circle(-15,90)
t.fd(122)
t.circle(15,90)
t.fd(75)
t.fd(-15)
t.right(90)
t.fd(50)
curve2()
t.fd(30)
t.fd(75)
t.fd(-75)
t.right(-90)
t.fd(50)
curve2()
t.fd(32)
t.fd(60)
t.circle(-15,90)
t.fd(122)
t.circle(15,90)
t.fd(60)
t.fd(50)
curve()
t.fd(28)
t.right(-90)
t.fd(45)
t.right(-90)
t.penup()
t.fd(50)
t.dot(30,'White')
t.penup()
t.goto(-96,155)
t.right(-90)
t.fd(45)
t.right(-90)
t.fd(50)
t.dot(30,'White')
t.goto(-200,-180)
t.write("PYTHON 3.6.8 ",font=('Arial',40,'bold'))
t.right(90)
t.speed(1)
t.color(1,1,1)
t.pendown()
t.fd(355)
t.hideturtle()
II.
import turtle
turtle.fd(300)
turtle.right(-90.0)
for y in range(1,3):
turtle.color('Orange')
turtle.begin_fill()
turtle.fd(100)
turtle.right(-90)
turtle.fd(600)
turtle.right(-90)
turtle.end_fill()
turtle.color('Black')
turtle.right(180)
turtle.fd(100)
for q in range(1,3):
turtle.color('Green')
turtle.begin_fill()
turtle.fd(100)
turtle.right(90)
turtle.fd(600)
turtle.right(90)
turtle.end_fill()
turtle.color('White')
turtle.right(180)
for q in range(1,3):
turtle.color('White')
turtle.begin_fill()
turtle.fd(100)
turtle.right(-90)
turtle.fd(600)
turtle.right(-90)
turtle.end_fill()
turtle.color('White')
turtle.fd(100)
turtle.right(-90)
turtle.fd(300)
turtle.color('Blue')
turtle.pensize(8)
turtle.circle(50)
turtle.right(-90.0)
turtle.forward(100)
turtle.forward(-50)
for i in range(1,25):
turtle.right(15.0)
turtle.forward(50)
turtle.forward(-50)
turtle.hide()
Get CODES here for Python's logo.
Get CODES here for Indian Flag.