Dictionary and Slicing

Report a typo

Assume you have a dictionary of children's names and toys that belong to them.

names_toys = {"Tom": "car", "Suzy": "teddy bear", "Sam": "boat", "Lucy": "ball"}

You want to know the first two entries of this dictionary ({"Tom": "car", "Suzy": "teddy bear"}). To do so, you must slice the dictionary. Is this correct?

Select one option from the list
___

Create a free account to access the full topic