Q. When would you prefer tuples over lists ?
Answer =
We would prefer tuple over list due
to following reason .
1 tuple is faster than list.
2 tuple can use as a key in a
dictionary while in list not possible.
3 tuple is immutable and list is
mutable.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )