Which line of code will correctly create a Python list?
(1 point)
Responses
availableColors = "red", "yellow", "blue"
availableColors = "red", "yellow", "blue"
availableColors = ("red", "yellow", "blue")
availableColors = ("red", "yellow", "blue")
availableColors = {"red", "yellow", "blue"}
availableColors = {"red", "yellow", "blue"}
availableColors = ["red", "yellow", "blue"]
The correct line of code to create a Python list is:
availableColors = ["red", "yellow", "blue"]
The correct line of code to create a Python list is:
availableColors = ["red", "yellow", "blue"]
The line of code that will correctly create a Python list is:
availableColors = ["red", "yellow", "blue"]
To create a list in Python, you use square brackets [] and separate each item in the list with a comma. In this case, the list contains the strings "red", "yellow", and "blue".