How are dictionaries different from lists ?
Answers
Answered by
13
Answer:
hey..... mate your ans... is here
Lists are ordered sets 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. A dictionary is an associative array (also known as hashes). Any key of the dictionary is associated (or mapped) to a value.
please mrk as brain list
Answered by
4
Lists and dictionary:
• A list is an ordered arrangement of objects, while dictionaries are unordered sets.
• Dictionaries are the Python execution of an abstract data type, identified in computer science as an associative array while Lists can be employed as stacks and the operator pop() is used to take a section from the stack.
Hope it helped..
Similar questions