Avatar ·

How to draw a brick wall in Python in a For loop

📁 Advanced Python Topics, AI

There is a library simple_DRAW for drawing simple graphic primitives. I can't understand how to draw a cycle of vertical lines, more precisely, I get in each row one line with a shift.

width = 100 height = 50 x = 0 y = 0 x_1 = 100 y_1 = 50 rows = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,