I Hate CBT's

View Original

5.1.5 Black And White Squares

Question: 5.1.5: Black and White Squares

Answer: speed(0)

penup()

setposition(-100,0)

count=0

def make_squares(i):

if i % 2 == 0:

begin_fill()

for i in range(4):

forward(25);

left(90)

end_fill()

penup()

pendown()

for i in range(6):

pendown()

make_squares(i)

penup()

forward(35)

Question: hello

Answer: hi