Skip to main content

Program to demonstrate the Return of Multiple Values from a Function Definition

· One min read
Kaustubh Kulkarni

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)