Write a Python program to swap two tuples


Topic: Write a Python program to swap two tuples

Solution

tuple1 = (11, 22)
tuple2 = (99, 88)
tuple1, tuple2 = tuple2, tuple1
print(tuple2)
print(tuple1)



List all Python Programs