Activity or Lab
This is a tutorial on list comprehensions in Python, suitable for use in an Intro or CS0 course. We also briefly mention set comprehensions and dictionary comprehensions.
This OER material was produced as a result of the CS04ALL CUNY OER project
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 4.0 License.
Johnson, Hunter R., "CS04ALL: List Comprehensions" (2019). CUNY Academic Works.