def alternating_colors(rows, cols): grid = [] # This will become a list of rows # Your nested loops here return grid
It's a typical Monday morning for Rohan, a junior from California, who's enrolled in the CMU CS Academy's online course, "Introduction to Computer Science." Rohan wakes up early, grabs a cup of coffee, and logs into his computer. He opens his web browser and navigates to the course website, where he checks the daily schedule and assignments.