Python Developer Question:

Tell me what is the difference between list and tuple?

Python Developer Interview Question
Python Developer Interview Question

Answer:

The difference between list and tuple is that list is mutable while tuple is not. Tuple can be hashed for e.g as a key for dictionaries.


Previous QuestionNext Question
Tell me what is docstring in Python?How to copy an object in Python?