Introduction to Python Turtle

Pubblicato il: 01 January 1970
sul canale di: Geek Tutorials
52,139
491

Learn about the basic features of Python's Turtle module. In this video you will learn how to draw lines, move in any direction, change the colour and size of lines and will finish with an activity to draw your name.

~ CODE ~
from turtle import *

pensize(10)
color("blue")

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

The letter 'T'
forward(200)
back(100)
right(90)
forward(200)

Move to the next letter
penup()
back(200)
left(90)
forward(150)
pendown()
color("yellow")
pensize(20)

The letter 'I'
right(90)
forward(200)

Move to the next letter
penup()
back(200)
left(90)
forward(50)
pendown()
color("red")
pensize(30)

The letter 'M'
right(90)
forward(200)
back(200)
left(30)
forward(150)
left(120)
forward(150)
right(150)
forward(200)


In questa pagina del sito puoi guardare il video online Introduction to Python Turtle della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Geek Tutorials 01 January 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 52,139 volte e gli è piaciuto 491 spettatori. Buona visione!