What are differences between list and dictionary in python?



What are differences between list and dictionary in python?..

Answer / Ratnesh Mani Tripathi

A list is ordered and mutable, while a dictionary is unordered and mutable. Lists store items as elements in a sequence, whereas dictionaries store key-value pairs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How to you make a python script executable on unix?

1 Answers  


Explain delegation in python

1 Answers  


How is “self” explicitly defined in a method?

1 Answers  


How do you make use of arrays in python?

1 Answers  


If given the first and last names of bunch of employees how would you store it and what datatype?

1 Answers  


What is loop in python?

1 Answers  


Is list iterable in python?

1 Answers  


Can we change tuple values? If yes, give an example.

1 Answers  


What is Python Set?

1 Answers  


What is super () in python?

1 Answers  


How will you compare two lists?

1 Answers  


What is a sequence in python?

1 Answers  


Categories