6.3.5 Cmu Cs Academy May 2026
Mastering CMU CS Academy: A Deep Dive into Unit 6.3.5 (The key_press Challenge)
If you are currently navigating the vibrant, graphics-driven world of CMU CS Academy, you have likely encountered the infamous checkpoint 6.3.5. For many students, this specific exercise represents the first major leap from simple animation loops into the realm of interactive event handling.
- Read the prompt twice. CMU CS Academy prompts are precise; miss one word and your solution fails the auto-grader.
- Draw on paper first. Sketch the grid and color indices before writing code.
- Use print statements. Insert
print(grid)after the inner loop to debug row by row. - Check variable scope. Ensure
new_rowis reinitialized as an empty list for each outer loop iteration. - Test edge cases. What if
rows = 1? What ifcols = 1? What ifrows = 0?
Right way:
Mastering CMU CS Academy: A Deep Dive into Section 6.3.5 If you are navigating the world of Python programming through the Carnegie Mellon University (CMU) CS Academy curriculum, you already know it’s one of the most robust platforms for learning computer science. But as any student knows, certain sections act as "gateways"—concepts that, once mastered, unlock a whole new level of coding ability. 6.3.5 Cmu Cs Academy
1. Create the shape
app.player = Rect(150, 200, 50, 50, fill='dodgerBlue') Mastering CMU CS Academy: A Deep Dive into Unit 6
Row 0: red, blue, red, blue
Row 1: blue, red, blue, red
Row 2: red, blue, red, blue
: Requires students to move and rotate three polygons (top, bottom left, and bottom right) until they reach a specific centered position. top.centerX < 200 Read the prompt twice
# Create the individual parts of the shape t1 = RegularPolygon(200, 150, 50, 3, fill='gold') t2 = RegularPolygon(150, 236, 50, 3, fill='gold') t3 = RegularPolygon(250, 236, 50, 3, fill='gold') # Group them into one object triforce = Group(t1, t2, t3) Use code with caution. Copied to clipboard 2. Implement the Animation with onStep
for c in range(cols):
if (r + c) % 2 == 0:
new_row.append('red')
else:
new_row.append('blue')