34.9k views
1 vote
Which of these are correctly formatted python lists? check all that apply

Options
-list1=(race, cars, trucks, bikes)
-list2=["computer science', 'math', 'psychology']
-list3=('summer', 'winter', 'spring')
-list5[52, 24, 71, 56]​

User Albi
by
5.9k points

2 Answers

4 votes

The first and third option are actually tuples, not lists. Tuples and lists are identical except for the fact that you cannot change the elements in a tuple but you can in a list. The last option is incorrect because there is no equal sign that assigns those numbers to the variable name list5.

The only option that makes sense is option 2, list2

User Meetar
by
6.8k points
2 votes

Answer:

B, C, and E :)

Step-by-step explanation:

User Binnev
by
6.9k points