Palestine Flag by using Python | Source code awailable in description

Опубликовано: 28 Октябрь 2024
на канале: Python Developer - 0.1
1,900
76

from turtle import *
color('red')
begin_fill()
lt(90)
fd(200)
rt(135)
fd(150)
rt(90)
fd(150)
end_fill()
penup()
rt(135)
fd(210)
pendown()
rt(90)
color('black')
begin_fill()
fd(300)
rt(90)
fd(70)
rt(90)
fd(227)
rt(45)
fd(100)
end_fill()
penup()
lt(180)
fd(100)
pendown()
color('white')
lt(45)
fd(227)
rt(90)
fd(70)
color('green')
begin_fill()
rt(90)
fd(229)
lt(45)
fd(100)
lt(135)
fd(300)
lt(90)
fd(70)
end_fill()
penup()
lt(60)
fd(350)
pendown()
color('black')
write("Palestine Flag",font=('arial',6,'normal'))
hideturtle()
done()