Que > Program to demonstrate the Return of Multiple Values from a Function Definition
Program
file.py
def swap(x,y):
return y,x
print(swap(7,8))
Output
(8, 7)
Que > Program to demonstrate the Return of Multiple Values from a Function Definition
def swap(x,y):
return y,x
print(swap(7,8))
(8, 7)