Skip to content

Commit 501654c

Browse files
Create Swap.py
1 parent 4004e25 commit 501654c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Swap.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
a=10
2+
b=20
3+
print("Before Swapping Values",a,"",b)
4+
5+
temp=a
6+
a=b
7+
b=temp
8+
print("After Swapping values",a,"",b)

0 commit comments

Comments
 (0)