CBSE Class 12 Computer Science Question 10 of 68

Data Structures - I : Linear Lists — Question 6

Back to all questions
6
Question

Question 6

What is a list comprehension ?

Answer

A list comprehension is a concise description of a list that shorthands the list creating for loop in the form of a single statement. The syntax is: [expression_creating_list for (set of values) condition].