Forum s vijestima

crtanje kvadrata

crtanje kvadrata

napisao/la Ivona Plavčić -
Broj odgovora: 0

from turtle import* 

title("Kvadrati") 

st()

for i in range (4):

    fd(100) 

    rt(90)

fd(5)

rt(90)

pu()

fd(5)

pd()

for i in range (4):

    fd(90) 

    lt(90)

fd(5)

lt(90)

pu()

fd(5)

pd()

for i in range (4):

    fd(80) 

    rt(90)

fd(5)

rt(90)

pu()

fd(5)

pd()

for i in range (4):

    fd(70) 

    lt(90)

fd(5)

lt(90)

pu()

fd(5)

pd()

for i in range (4):

    fd(60) 

    rt(90)