176k views
7 votes
Choose the type of collection created with each assignment statement. collectionA = {5:2} collectionB = (5,2) collectionC = [5, 2]

2 Answers

5 votes

Answer:

Dictionary collectionA

Tuple collectionB

List collectionC

Explanation:

A dictionary uses curly brackets. A tuple uses parentheses. A list uses square brackets.

User ReynierPM
by
4.1k points
0 votes

Answer:

CollectionA is Dictionary

CollectionB is List

CollectionC is Tuple

Step-by-step explanation:

List is recognized by the square brackets

Tuple by the parentheses

Dictionary by the curly brackets

User Paolo Rossi
by
4.1k points