Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

swapping in python

a = 10
b = 20
print("not swiped value of a is",a)
print("not swiped value of b is",b)
stored_value = a
a = b
b = stored_value
print("swiped value of a is",a)
print("swiped value of b is",b)

 
PREVIOUS NEXT
Tagged: #swapping #python
ADD COMMENT
Topic
Name
3+7 =