diff --git a/function.py b/function.py index c0fd4e2..7c392ab 100644 --- a/function.py +++ b/function.py @@ -1,6 +1,12 @@ -def hello(): - print("hello") - print("hello again") -hello() - #again calling -hello() +def swap(x, y): + temp = x; + x = y; + y = temp; + +# Driver code +x = 2 +y = 3 +swap(x, y) +print(x) +print(y) +