CBSE Class 12 Computer Science
Question 60 of 68
Data Structures - I : Linear Lists — Question 16
Back to all questions- The list comprehensions should be enclosed in square brackets.
- The code contains a syntax error as it is using two
ifstatements within the list comprehension. We should use a singleifstatement with both conditions combined using theandoperator.