Ask Question
22 December, 12:41

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

+3
Answers (1)
  1. 22 December, 13:18
    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?
Get an answer to your question ✅ “In a Python dictionary, an association is formed between what two components of the dictionary? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers