Tuple is not changable : Tuple Immutable : Tuple PYTHON examples


PYTHON examples » Tuple » Tuple Immutable »

 

Tuple is not changable




T = (123)
T[24             # error!
T = T[:2(4,)     # okay: (124)
print T
           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Tuple
» Tuple Immutable