List Comprehensions – Writing concise loops
Dictionary & Set Comprehensions
Higher-Order Functions:
map()
filter()
reduce() (from functools)
Anonymous Functions (Lambdas) – continued with map and filter
Practice: Data transformation exercises
Use map() with a lambda to double a list of numbers.
Use a list comprehension to filter even numbers.
Use filter() with lambda to extract passing grades.
Use a dictionary comprehension to flip a key-value mapping.