What’s the difference between a list and a dictionary?
Answer / Mukesh Kumar Paswan
A list is a collection of mutable ordered elements, whereas a dictionary is a collection of key-value pairs. Lists are indexed by integers, while dictionaries are indexed by keys. Lists can contain duplicate values, but dictionaries cannot have duplicate keys.
| Is This Answer Correct ? | 0 Yes | 0 No |
With python, how do you find out which directory you are currently in?
Python list of lists, changes reflected across sublists unexpectedly
How can you identify the data type of any variable in python?
How can I execute arbitrary python statements from c?
Are uuids sequential?
List some pdb commands.
How to pass indefinite number of arguments to any function?
What are types in python?
Is python strongly typed?
What is a Pandas Series, and what? does it entail
What is python and python scripting?
What is a function for flatten an irregular list of lists?