Ask Question
4 November, 17:14

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

+1
Answers (1)
  1. 4 November, 20:11
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers