17.5k views
5 votes
What type of collection is created with each assignment statement?

doors = {1:'car', 2:'sponge', 3:'popcorn'}

doors = (2, 5, 3, 6)


list, tuple , dictionary

1 Answer

7 votes

Answer:

tuple

Step-by-step explanation:

at first its a dictionary but then it is reassigned to a tuple

don't forget tuples are immutable

User Fourth
by
4.3k points