Answers for "how to swap 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

Browse Popular Code Answers by Language