How to Update Tuples : Assign : Tuple PYTHON TUTORIALS


PYTHON TUTORIALS » Tuple » Assign »

 

How to Update Tuples


aTuple = (123'abc', 4.56['inner', 'tuple'], 7-9j)

aTuple = aTuple[0], aTuple[1], aTuple[-1]

print aTuple

tup1 = (1234.56)

tup2 = ('abc', 'xyz')

tup3 = tup1 + tup2

print tup3



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Tuple
» Assign