Draw france flag using python turtle
In this tutorial, we are going to show and explain How to draw France 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 France flag using python turtle
Video Tutorial: Draw France 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", "blue") 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: