Ask Question

In a Python dictionary, an association is formed between what two components of the dictionary?

+5
Answers (1)
  1. 31 October, 00:27
    0
    Yes, an association is formed between key and its value.

    Explanation:

    A dictionary in python is an unordered data structure where 2 elements are entered for each entry - a key and its value. Unlike list, we have to give the index through which we want to access that value. This is more flexible than lists as in lists index can be of int type only but in dictionary key can be of any datatype. For example:

    dict = { "apple: 1, "banana" : 2 }

    Every element need not be of same type, they can differ too.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In a Python dictionary, an association is formed between what two components of the dictionary? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers