Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Assignment
Synopsis

In this assignment students work either individually or in pairs to write a series of image-processing functions. Using list comprehension, students must write functions that invert the colors of an image, change the colors to greyscale, change the image to black and white, flip the image, and mirror the image. Students are also encouraged to be creative and come up with their own alterations. This assignment covers list comprehension on multidimensional lists. It is particularly useful for students who are new to multidimensional lists and need additional practice using list comprehension on them.

Recommendations

Model what students are to do during a pair programming activity. Invite a student volunteer to join you for a demonstration of the interactions and behaviors that are characteristic of a successful pair programming session.

Engagement Highlights

Students are encouraged to come up with their own algorithms to Incorporate Student Choice. Students manipulate images to Employ Meaningful and Relevant Content.

Materials and Links

Materials

Computer Science Details

Programming Language
Python

Material Format and Licensing Information

Creative Commons License
CC BY-NC