Computer Science, asked by ashmidev007, 2 months ago

What is Dictionaries? how are dictionaries different from lists?

Answers

Answered by abhaylakhani567
3

Answer:

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.

Answered by ashwinkumar0842
1

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.

Similar questions