2.10.5 Sidewalk Codehs Answers ✯ | Certified |

Some versions ask for a sidewalk pattern with lines separating each slab. You would still use a loop, but add a black line between rectangles or after each rectangle.

The key challenge is that the sidewalk must be or mathematically calculated—meaning it should look correct no matter the size of the canvas, or at least fit within a given width and height. 2.10.5 sidewalk codehs answers

A: Check your drawVerticalLine function. The y parameter should be the top border's y , and the height should be bottomY - topY . If you accidentally use height = 200 , the line may overshoot. Some versions ask for a sidewalk pattern with

: This uses a for i in range(8) loop to repeat the draw_square function eight times, covering one full -pixel edge of the screen. Positioning : The canvas coordinates range from -200negative 200 A: Check your drawVerticalLine function

int topY = 50; int bottomY = 200; int leftX = 50; int rightX = 350;