“We met the list comprehension briefly in Chapter 4. Syntactically, its syntax is derived from a construct in set theory notation that applies an operation to each item in a set, but you don’t have to know set theory to use… — Mark Lutz Copy Share Image
“map is similar to a list comprehension but is more limited because it requires a function instead of an arbitrary expression.” — Mark Lutz Copy Share Image