Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to swap tuple

#Swapping Tuples
tuple1 = (11, 22)
tuple2 = (99, 88)
tuple1, tuple2 = tuple2, tuple1
print(tuple2)
print(tuple1)
 
PREVIOUS NEXT
Tagged: #swap #tuple
ADD COMMENT
Topic
Name
4+7 =