






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of various list processing techniques in python, including built-in functions sum, min, max, range, list, map, and the for statement. It also covers nested lists and two-dimensional lists, as well as slices and multidimensional lists. Students will learn how to manipulate and process lists using these techniques.
Typology: Slides
1 / 11
This page cannot be seen from the preview
Don't miss anything!







if x is a list of n items and f is a function with one parameter:
if x is a list of n items and m is a method with no parameters:
calls the function once for each list item
x[0] x[1][1] x[2][0] x[2][2][1] x[1] x[2]
0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5 6 7 8 9 10 11 12 Each row, col has a value Each row, col has an RGB value
id 9 6 4 id 5 7 7 id id id b^ id
0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5 6 7 8 9 10 11 12 b^ id id id id list … id id id list … id red 255 green 255 blue 255
id 9 6 id id id b id id id 4 5 id 7 7
x id id id id