12 of 1512 of 15 Items

Question
Which of these is a correct example of the creation of a list in Python?

(1 point)
Responses

names = [“James”, “Omar”, “Hazel”, “Lee”, “Mia”]

names = [“James”, “Omar”, “Hazel”, “Lee”, “Mia”]

names = (“James”, “Omar”, “Hazel”, “Lee”, “Mia”)

names = (“James”, “Omar”, “Hazel”, “Lee”, “Mia”)

list[names] = [“James”, “Omar”, “Hazel”, “Lee”, “Mia”]

list[names] = [“James”, “Omar”, “Hazel”, “Lee”, “Mia”]

list(names) = (“James”, “Omar”, “Hazel”, “Lee”, “Mia”)

list(names) = (“James”, “Omar”, “Hazel”, “Lee”, “Mia”)
Skip to navigation

The correct example of creating a list in Python is:

names = ["James", "Omar", "Hazel", "Lee", "Mia"]