Python Developer Question:
Do you know what Is The Key Difference Between A List And The Tuple?
Answer:
☛ List Vs Tuple.
The major difference between a list and the tuple is that the list is mutable while tuple is not. A tuple is allowed to be hashed, for example, using it as a key for dictionaries.
The major difference between a list and the tuple is that the list is mutable while tuple is not. A tuple is allowed to be hashed, for example, using it as a key for dictionaries.
Previous Question | Next Question |
Tell me how Does The Ternary Operator Work In Python? | Tell me what are generators in Python? |