Python Turtle - Code the German Flag Tutorial

Publicado em: 07 Abril 2020
no canal de: Geek Tutorials
8,227
64

Learn how to quickly draw the German 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_me...

~ CODE ~

from turtle import *

speed(0)
setup(800, 500)

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

Black Rectangle
color("black")
begin_fill()
forward(800)
right(90)
forward(167)
right(90)
forward(800)
end_fill()

left(90)

Red Rectangle
color("red")
begin_fill()
forward(167)
left(90)
forward(800)
left(90)
forward(167)
end_fill()

left(180)
penup()
forward(167)
pendown()

Yellow Rectangle
color("yellow")
begin_fill()
forward(167)
right(90)
forward(800)
right(90)
forward(167)
end_fill()

hideturtle()


Nesta página do site você pode assistir ao vídeo on-line Python Turtle - Code the German Flag Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Geek Tutorials 07 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 8,227 vezes e gostou 64 espectadores. Boa visualização!