And remember: it's entirely free, backed by Carnegie Mellon University's world-class computer science faculty, and designed to help you succeed. Happy coding!
The boundary check uses 20 and 380 because the radius is 20. The center of a 20px radius circle at x=20 touches the edge at x=0.
Happy coding, and remember: every expert programmer once struggled with nested loops. Persist, and you will master it. 6.3.5 Cmu Cs Academy
def draw_grid(app): rows = 4 cols = 5 colors = alternating_colors(rows, cols) cell_width = app.width / cols cell_height = app.height / rows for r in range(rows): for c in range(cols): fill = colors[r][c] draw_rect(c * cell_width, r * cell_height, cell_width, cell_height, fill=fill)
Shapes change behavior based on exactly where and when a user interacts with the canvas. And remember: it's entirely free, backed by Carnegie
Summary
Understanding how to pass the correct arguments (the list of x-coordinates and the list of y-coordinates) is the core coding challenge of this unit. The center of a 20px radius circle at
Beyond just getting a green check, mastering the concepts in section 6.3—and checkpoint 6.3.5 in particular—has profound implications for a student's coding journey.
that requires you to animate three triangles (polygons) using statements and property changes.
To help tailor this guide further, tell me: Are you stuck on a , or do you need help understanding the logic for a particular shape interaction in this exercise? Share public link
And remember: it's entirely free, backed by Carnegie Mellon University's world-class computer science faculty, and designed to help you succeed. Happy coding!
The boundary check uses 20 and 380 because the radius is 20. The center of a 20px radius circle at x=20 touches the edge at x=0.
Happy coding, and remember: every expert programmer once struggled with nested loops. Persist, and you will master it.
def draw_grid(app): rows = 4 cols = 5 colors = alternating_colors(rows, cols) cell_width = app.width / cols cell_height = app.height / rows for r in range(rows): for c in range(cols): fill = colors[r][c] draw_rect(c * cell_width, r * cell_height, cell_width, cell_height, fill=fill)
Shapes change behavior based on exactly where and when a user interacts with the canvas.
Summary
Understanding how to pass the correct arguments (the list of x-coordinates and the list of y-coordinates) is the core coding challenge of this unit.
Beyond just getting a green check, mastering the concepts in section 6.3—and checkpoint 6.3.5 in particular—has profound implications for a student's coding journey.
that requires you to animate three triangles (polygons) using statements and property changes.
To help tailor this guide further, tell me: Are you stuck on a , or do you need help understanding the logic for a particular shape interaction in this exercise? Share public link