What is a term commonly used to describe the python dictionary feature in other programming languages? Sequences associative arrays lambdas closures?
Answers
Answered by
1
Explanation:
A list is an ordered sequence of objects, whereas dictionaries are unordered sets. But the main difference is that items in dictionaries are accessed via keys and not via their position. ... Any key of the dictionary is associated (or mapped) to a value. The values of a dictionary can be any Python data type.
Thanks!!
Answered by
5
Associative array is a term commonly used to describe the python dictionary feature in other programming languages.
Explanation:
Python Dictionary is an unordered data collection, used to store data values like a map. The Dictionary holds pair key: value. To make it more structured the key value is presented in the dictionary.
An Associative array also called maps or dictionaries that can hold data in (key, value) pairs.
- In an Associative array, each key can only appear once. And, each key can only have one value.
- It is important to remember that a given value can appear more than once in an associative array.
- The JavaScript, PHP, and Perl have an Associative array data type.
Similar questions