Draw Italy flag using python turtle

In this tutorial, we are going to show and explain How to draw Italy flag using python turtle. We have added the video tutorial and the source code of the program.

So let us begin with How to create Italy flag using python turtle

 

Video Tutorial: Draw Italy using python turtle

 

 

 

Source Code: 

 

import turtle as w
screen = w.Screen()
screen.setup(500, 600, startx=0, starty=100)
w.penup()
w.goto(-200.0,213.0)
w.pendown()
w.color("black", "green")
w.begin_fill()
for x in range(2):
    w.forward(100)
    w.right(90)
    w.forward(200)
    w.right(90)
w.end_fill()

w.forward(200)
w.color("black", "red")
w.begin_fill()
for x in range(2):
    w.forward(100)
    w.right(90)
    w.forward(200)
    w.right(90)
w.end_fill()
w.right(90)
w.forward(200)
w.left(90)
w.backward(100)
w.done()

 

 

Output:

 

Leave a Reply

Your email address will not be published. Required fields are marked *