From 7d788e4388e0c0f04624d03eb8ae335ba099f7b1 Mon Sep 17 00:00:00 2001 From: vijaykjangid <55364523+vijaykjangid@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:17:15 +0530 Subject: [PATCH] Create swap.py --- swap.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 swap.py diff --git a/swap.py b/swap.py new file mode 100644 index 0000000..6cb07a1 --- /dev/null +++ b/swap.py @@ -0,0 +1,7 @@ +a=input('Enter first no') +b=input('Enter second no') +print('before swaping a=',a,'b=',b) +a=a+b +b=a-b +a=a-b +print('after swaping a=',a,'b=',b)