Advantages of Tuples over list
1. The elements of a list are changeable (mutable) whereas the elements of a tuple are unchangeable (immutable), this is the key difference between tuples and list.
2. The elements of a list are enclosed within square brackets. But, the elements of a tuple are enclosed by paranthesis.
3. Iterating tuples is faster than list.
VIDEO LINK:
12 STD || CH-9 - Lists, Tuples, Sets and Dictionary || TUPLES || PART - 3
YOUTUBE LINK:
12 STD || CH-9 - Lists, Tuples, Sets and Dictionary || TUPLES || PART - 3
Tweet |
S.AJAY SHARMA WATCHING SIR
ReplyDelete