which of the following commands will create a list? group of answer choices list1 = list([1, 2, 3]) all of the mentioned list1 = list() list1 = [] in python

main.py
list1 = [1, 2, 3]  # This command will create a list
list1 = list([1, 2, 3]) # This command will also create a list
list1 = list()  # This command will create an empty list
list1 = []  # This command will create an empty list
226 chars
5 lines

related categories

gistlibby LogSnag