Your question is Swap Two Numbers Program. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Airtel Digital services may need to exchange two temporary integer values during processing. Write a function that swaps two numbers without changing their original inputs and returns the values in swapped order.
Implement swap_numbers(a, b):
a and b.[b, a].The values may be equal, zero, positive, or negative. Since Python integers are immutable, returning the swapped values is the observable result of the operation.
def swap_numbers(a, b):