Share your repls and programming experiences

← Back to all posts
Kwadraty
MichalWujas (1)

import turtle
t = turtle.Turtle()

def kwadrat(n):
for i in range(4):
t.fd(50)
t.lt(90)

def kwadraty(k):
for i in range(k):
kwadrat(100)
t.fd(150)
t.lt(90)

def kwadraty1(k):
for i in range(k):
kwadrat(100)
t.fd(100)
t.lt(90)

x = 40
if x > 15:
kwadraty(10)
kwadraty1(10)
else:
kwadrat(10)