Computer Science, asked by agilandon5505, 1 year ago

What is a common use of python dictionaries in a program?

Answers

Answered by Anonymous
2

Answer:

A dictionary maps a set of objects (keys) to another set of objects (values). A Python dictionary is a mapping of unique keys to values. Dictionaries are mutable, which means they can be changed. The values that the keys point to can be any Python value.A dictionary has a set of keys and each key has a single associated value. When presented with a key, the dictionary will return the associated value. A dictionary is also called a hash, a map, a hashmap in different programming languages (and an Object in JavaScript). They're all the same thing: a key-value store.

this will help you mate

Answered by sushiladevi4418
0

Answer:

Use of Dictionary in python program.

Explanation:

Dictionary is used to represent the unordered list of the data. In the dictionary, the key and value are represented. It is immutable which means it cannot be changed after creation. It is created by using curly braces like:-

d= {}

In the dictionary the key and the value are separated by the colon :

d={1:'Ram', 2:' Radha'}

Dictionary is used because accessing information by the dictionary is very easy it can be done by using the index value or we can say key.

Similar questions