Computer Science, asked by miyabhai786015, 3 months ago

How can we get the number of elements of a dictionary d1​

Answers

Answered by kanchanakumari288
1

Answer:

While indexing is used with other data types to access values, a dictionary uses keys . Keys can be used either inside square brackets [] or with the get() method. If we use the square brackets [] , KeyError is raised in case a key is not found in the dictionary.

Answered by shwetalbsimt
0

Answer:

Accessing Elements from Dictionary

While indexing is used with other data types to access values, a dictionary uses keys . Keys can be used either inside square brackets [] or with the get() method. If we use the square brackets [] , KeyError is raised in case a key is not found in the dictionary.

plz mark me as brainliest

Similar questions