Professional Documents
Culture Documents
COMPUTER SCIENCE-XII-CH1-Tuple
COMPUTER SCIENCE-XII-CH1-Tuple
ss
XI
COMPUTER SCIENCE I
with
PYTHON
Note: Once tuple is created, it can’t be modified, but we can recreate it again
Ex:
>>>Tup1=(1,2,3,4)
>>>print(Tup1) This line help us to
>>>Tup1=Tup1+(5,) recreate new tuple
>>>print(Tup1) with existing tuple
value
Here, we are not adding new value to tuple, but we are creating same tuple again, so it overlaps old tuple