examerioLogin
← Backend PythonQuestion 15 of 49

What is a list comprehension?

📘 Explanation

A list comprehension builds a new list by applying an expression to each element of an iterable in a compact syntax like [item for item in some_iterable]. The other options describe unrelated operations such as sorting, dictionary iteration, or list concatenation, which aren't what a list comprehension does.

Related questions

← PreviousNo login needed