Share your repls and programming experiences

← Back to all posts
Pieciokaty
MichalWujas (1)

import turtle
t = turtle.Turtle()

def pieciokat(a):
for i in range(5):
t.fd(a)
t.rt(72)

def pieciokaty1():
for i in range(12):
pieciokat(50)
t.rt(30)

def pieciokaty2():
for i in range(12):
pieciokat(50)
t.lt(30)
t.fd(50)

x = 1
if x > 2:
pieciokat(120)
else:
pieciokaty1()