Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

What is the difference between Dictionary, list, and tuple in python?

1 Answer

0 votes
by (26.4k points)

Look at the below points:

  • A list can store a sequence of objects in a certain order such that you can index into the list, or iterate over the list. List is a mutable type meaning that lists can be modified after they have been created.

  • A tuple is similar to a list except it is immutable. There is also a semantic difference between a list and a tuple.

  • A dictionary is a key-value store. It is not ordered and it requires that the keys are hashable. It is fast for lookups by key.

Want to become a Python expert? Do Come and join our python certification course to get certified.

For more details, do check out the below video tutorial...

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
4 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...