Share your repls and programming experiences

← Back to all posts
rozetaa
MichalWujas (1)

import turtle
t = turtle.Turtle()
t.pencolor("red")

def kwadrat(a):
for i in range(4):
t.fd(100)
t.lt(90)

def rozeta1():
for i in range(12):
kwadrat(2)
t.rt(30)

def osmiokaty2():
for i in range(12):
kwadrat()
t.rt(30)
t.fd(50)

x = 40
if x > 60:
kwadrat()
else:
t.speed(10)
rozeta1()