filmov
tv
Italy Flag by using Python | source code is in description #italy #shorts

Показать описание
from turtle import *
speed(0)
bgcolor('black')
color('white')
begin_fill()
rt(90)
fd(200)
lt(90)
fd(3)
lt(90)
fd(350)
lt(90)
fd(3)
lt(90)
fd(150)
end_fill()
lt(90)
fd(3)
color('green')
def sq():
begin_fill()
fd(70)
lt(90)
fd(150)
lt(90)
fd(70)
lt(90)
fd(150)
lt(90)
fd(70)
end_fill()
sq()
color('white')
sq()
color('red')
sq()
hideturtle()
penup()
lt(135)
fd(300)
pendown()
color('white')
write('Italy Flag',font=('arial',6,'normal'))
done()
speed(0)
bgcolor('black')
color('white')
begin_fill()
rt(90)
fd(200)
lt(90)
fd(3)
lt(90)
fd(350)
lt(90)
fd(3)
lt(90)
fd(150)
end_fill()
lt(90)
fd(3)
color('green')
def sq():
begin_fill()
fd(70)
lt(90)
fd(150)
lt(90)
fd(70)
lt(90)
fd(150)
lt(90)
fd(70)
end_fill()
sq()
color('white')
sq()
color('red')
sq()
hideturtle()
penup()
lt(135)
fd(300)
pendown()
color('white')
write('Italy Flag',font=('arial',6,'normal'))
done()