Korytnačka
Programoval som ako o dušu. Môžete skúsiť.
Dnes som mal kurz programovania. Naprogramoval som neskôr toto:
A príkaz bol:
Naprogramoval som aj:
from turtle import*
showturtle()
pensize(6)
forward(200)
bgcolor('pink')
right(130)
color('red')
forward(200)
right(130)
color('blue')
forward(105)
right(120)
delay(100)
delay(0)
left(160)
bgcolor('green')
forward(200)
pensize(1)
color('olive')
delay(0)
write("Windows 10 20H2", font=("Arial", 30, "italic"))
delay(500)
color('light salmon')
forward(201)
color('grey')
right(130)
bgcolor('white')
pensize(3)
right(2)
forward(200)
right(130)
bgcolor('aqua')
forward(203)
color('navy')
right(360)
left(90)
forward(100)
left(120)
forward(100)
left(120)
forward(100)
pencolor('grey')
forward(23)
right(200)
delay(1000)
left(160)
forward(500)
right(152)
forward(50)
done()
A ešte:
A trojuholníkovú skúšku:
from turtle import*
showturtle()
forward(203)
color('navy')
right(360)
left(90)
forward(100)
left(120)
forward(100)
left(120)
forward(100)
pencolor('grey')
forward(23)
right(200)
delay(1000)
left(160)
forward(500)
right(152)
forward(50)
done()
Ak máte idle, skúste to. Vlastne to prvé mi trvalo 50 min.