Python Turtle - Code a Triangle Tutorial

Pubblicato il: 23 febbraio 2020
sul canale di: Geek Tutorials
35,102
203

Learn how to quickly draw a triangle 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)
bgcolor("blue")

penup()
goto(-150, -100)
fillcolor("yellow")
begin_fill()
pendown()

for i in range(3):
forward(300)
left(120)
end_fill()

hideturtle()
exitonclick()


In questa pagina del sito puoi guardare il video online Python Turtle - Code a Triangle Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Geek Tutorials 23 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 35,102 volte e gli è piaciuto 203 spettatori. Buona visione!