Question


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















Answers

Answered by GPT 3.5
The correct example of creating a list in Python is:

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

Related Questions