Answers for "swapping elements in tuple"

1

how to swap tuple

#Swapping Tuples
tuple1 = (11, 22)
tuple2 = (99, 88)
tuple1, tuple2 = tuple2, tuple1
print(tuple2)
print(tuple1)
Posted by: Guest on June-03-2021

Code answers related to "swapping elements in tuple"

Browse Popular Code Answers by Language