Junior — Middle
Have you had experience working with data collections in Python?
sobes.tech AI
Answer from AI
In Python, there are several built-in data collection types I have worked with: lists, tuples, sets, and dictionaries.
For example, lists are used to store ordered, mutable sequences of elements, while dictionaries are used to store key-value pairs.
An example of using a dictionary:
user = {'name': 'Ivan', 'age': 30, 'city': 'Moscow'}
print(user['name']) # Outputs: Ivan
I am also familiar with collections from the collections module, such as defaultdict, Counter, and namedtuple, which extend the capabilities of standard collections.