CBSE Class 11 Informatics Practices
Question 27 of 80
Lists in Python — Question 5
Back to all questionsAll of these
Reason — All of the provided commands will create a list in Python:
List1=list()initializes an empty list using the list constructor.List1=[]directly initializes an empty list using square brackets.List1=[1, 2, 3, "a"]initializes a list with mixed data types including integers and a string.