Skip to content

Commit 906de9c

Browse files
committed
Added variable examples in swap_numbers.py
1 parent 2f4a57a commit 906de9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swap_numbers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
a=input("enter value of a:")
2+
b=input("enter value of b:")
3+
c=a
4+
a=b
5+
b=c
6+
print("After swapping:")
7+
print("value of a:",a)
8+
print("value of b:",b)# Compare this snippet from

0 commit comments

Comments
 (0)