Answers for "swap two elements in tuple python"

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 "swap two elements in tuple python"

Browse Popular Code Answers by Language