Which of the following commands will create a list(multiple answers allowed) ?
A. list1 = list()
B. list1 = []
C. list1 = list([1, 2, 3])
D. list1 = [1, 2, 3]
Answer:A
Which of the following commands will create a list(multiple answers allowed) ?
A. list1 = list() B. list1 = [] C. list1 = list([1, 2, 3]) D. list1 = [1, 2, 3]
Explanation:Execute in the shell to verify