Computer Science, asked by shyamshiva293, 4 months ago

write a program in python to access a key and value points to print it​

Answers

Answered by Itzcreamykitty
5

Answer:

Use a for loop to print all key value pairs of a dictionary

Use a for loop to print all key value pairs of a dictionary Use a for loop to iterate over the list with all key value pairs generated by dict. items() . Print a pair during each iteration.

Answered by sabaklama316
0

Answer:

The Python list stores a collection of objects in an ordered sequence. In contrast, the dictionary stores objects in an unordered collection. However, dictionaries allow a program to access any member of the collection using a key – which can be a human-readable string.

Both the dictionary and list are ubiquitous for representing real-world data.

Similar questions