26,952 views
19 votes
19 votes
Choose the type of collection described.

A ___ uses square brackets. You use append to add to the collection.
A ___ uses curly brackets. You use update to add to the collection.
A ____ uses parentheses. You cannot change it once you create it.

Answer choices for all three:
•List
•Tuple
•Dictionary

User Michael Berezin
by
2.6k points

1 Answer

18 votes
18 votes

Answer:

1) List

2) Dictionary

3) Tuple

Step-by-step explanation:

A list uses square brackets. It is used to store multiple items in just one variable. They are usually changeable and give room for duplicates. You use append to add to the collection.

A dictionary uses curly brackets. You use update to add to the collection. A dictionary is created by placing the elements in curly brackets and separating them with a comma. It is changeable and it does not give room for duplicates.

A tuple uses parentheses. You cannot change it once you create it. It is an ordered list of elements that is finite and can also store multiple items in one variable.

User Pickle Rick
by
2.8k points