Python Developer Question:

Tell me what is the difference between list and tuple?

Tweet Share WhatsApp

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.

Download Python Developer PDF Read All 77 Python Developer Questions
Previous QuestionNext Question
Tell me what is docstring in Python?How to copy an object in Python?