ISRAEL Flag using python turtle library

Published: 04 March 2023
on channel: Shrikant Chambhare
627
10

Hi guys,
this video shows how to create Israel flag as per standards. If you have questions leave a comment.

Here is the code:
```
import turtle

turtle.bgcolor("black")

t = turtle.Turtle()
t.pensize(1)

draw big rectangle 220 * 160
and fill the while color
t.setposition(-110, 80)
t.color("white")
t.fillcolor("white")
t.begin_fill()
for _ in range(2):
t.forward(220)
t.right(90)
t.forward(160)
t.right(90)
t.end_fill()
t.setposition(-110, 65)


t.color("blue")
t.hideturtle()
t.speed("fastest")

create another turtle and do same operations
k = turtle.Turtle()
k.pensize(1)
k.color("blue")
k.speed("fastest")
k.penup()
k.hideturtle()
k.setposition(-110, -40)
k.pendown()

for _ in range(25):
t.forward(221)
t.right(90)
t.penup()
t.forward(1)
t.right(90)
t.forward(221)
t.right(180)
t.pendown()

k.forward(221)
k.right(90)
k.penup()
k.forward(1)
k.right(90)
k.forward(221)
k.right(180)
k.pendown()

draw the star

t.penup()
t.pensize(6)
t.setposition(-24, -18)
t.pendown()
t.speed(2)

for _ in range(3):
t.forward(60)
t.left(120)

t.penup()
t.pensize(6)
t.setposition(-24, 18)
t.pendown()
t.speed(2)

for _ in range(3):
t.forward(60)
t.right(120)


turtle.done()
```


On this page of the site you can watch the video online ISRAEL Flag using python turtle library with a duration of hours minute second in good quality, which was uploaded by the user Shrikant Chambhare 04 March 2023, share the link with friends and acquaintances, this video has already been watched 627 times on youtube and it was liked by 10 viewers. Enjoy your viewing!