Run
# Function that returns multiple values def swap(x, y): temp = x x = y y = temp return x, y # Take two values a = 10 b = 20 print(f'\nBefore Swap - (a, b) : ({a}, {b})') # Swap a, b a, b = swap(a, b) print(f'\nAfter Swap - (a, b) : ({a}, {b})')
Output