CBSE Class 11 Informatics Practices
Question 7 of 80
Lists in Python — Question 7
Back to all questions 7
Question Assertion (A): An empty list can be created using list() method.
Reasoning (R): The following snippet—
>>>L1 = list()
>>>print(L1)
will give the output as:
[]
This statement holds true.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Both A and R are true and R is the correct explanation of A.
Explanation
An empty list can be created using list() method. The provided code:
>>>L1 = list()
>>>print(L1)
will give the output as: [], which represents an empty list.