Odpowiedź:
import turtle
def kwadrat(x):
turtle.clear()
turtle.setposition(0,0)
for i in range(0,4):
turtle.forward(x)
turtle.right(90)
def pieciokat(x):
for i in range(0,5):
turtle.right(72)
def osmiokat(x):
for i in range(0,8):
turtle.right(45)
kwadrat(100)
pieciokat(200)
osmiokat(50)
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
import turtle
def kwadrat(x):
turtle.clear()
turtle.setposition(0,0)
for i in range(0,4):
turtle.forward(x)
turtle.right(90)
def pieciokat(x):
turtle.clear()
turtle.setposition(0,0)
for i in range(0,5):
turtle.forward(x)
turtle.right(72)
def osmiokat(x):
turtle.clear()
turtle.setposition(0,0)
for i in range(0,8):
turtle.forward(x)
turtle.right(45)
kwadrat(100)
pieciokat(200)
osmiokat(50)