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.

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. how to become as good as you in tuples. im from kazan i dond know the english well enough in this python. pls help gods of path wala

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post