Share your repls and programming experiences

← Back to all posts
Rozeta
MichalWujas (1)

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

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)
t.fd(65)

def rozeta2():
for i in range(6):
kwadrat(2)
t.fd(100)
t.rt(-60)

x = 20
if x > 10:
t.speed(20)
rozeta2()
else:
t.speed(20)
rozeta1()