Город МОСКОВСКИЙ
00:03:38

Python Turtle - Code The Netherlands Flag Tutorial

Аватар
Эпические Битвы
Просмотры:
22
Дата загрузки:
29.10.2023 13:47
Длительность:
00:03:38
Категория:
Обучение

Описание

Learn how to quickly draw The Netherlands flag using Python's Turtle module.

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=geektutorials&utm_content=description-only

~ CODE ~

from turtle import *

speed(0)
setup(800, 500)

penup()
goto(-400, 250)
pendown()

# Red
color("red")
begin_fill()
forward(800)
right(90)
forward(167)
right(90)
forward(800)
end_fill()

left(90)
forward(167)

# Blue
color("darkblue")
begin_fill()
forward(167)
left(90)
forward(800)
left(90)
forward(167)
end_fill()

hideturtle()

Рекомендуемые видео