Final answer:
Collections such as strings, lists, tuples, and dictionaries can be tested for string manipulation, list indexing, tuple unpacking, and dictionary key-value pairs.
Step-by-step explanation:
For collections (strings, lists, tuples, dictionaries), several things can be tested:
- String manipulation: This involves manipulating and modifying the characters in a string, such as changing case, concatenating strings, or searching for substrings.
- List indexing: Lists can be accessed and modified using index values. This allows for retrieval, insertion, and deletion of elements in the list.
- Tuple unpacking: Tuples can be unpacked to assign values to multiple variables in a single line. This is useful when working with functions that return multiple values.
- Dictionary key-value pairs: Dictionaries can be tested by checking whether a key exists or accessing the value corresponding to a given key.