Learn how to draw with Python

preview_player
Показать описание
Learn step-by-step how to make drawings with Python using the Turtle Graphics library.

Music:
Рекомендации по теме
Комментарии
Автор

Very nice & useful information for young & beginner coders .Thanks a lot

pandianshanthakumar
Автор

For anyone just wanting the code and don't want to sit through the video:
--

import turtle

#create canvas
t = turtle.Pen()

#move turtle 100 pixels
t.forward(100)

#lifts the pencil from the canvas
t.up()

#places the pencil on the canvas
t.down()

#turn 90 degrees to the left
t.left(90)

#turn 90 degrees to the right
t.right(90)

#draw a circle with a radius of 100 pixels
t.circle(100)
--

This is pretty much the commands that was used in the video above.
In the video it also shows how to use loops to create different shapes.

reydion
Автор

thanks a lot, it's very satisfying to draw things instead of just code matrix

mrdupont
Автор

These are just basics. You can make amazing patterns with loops and various colors. It's good for young people to learn geometry and coding

taurohkea
Автор

how to make steps whit for i in range pls

ahmedbensaaed
Автор

t = turtle.pen() shows error in this ?

dakshvats
join shbcf.ru