Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python swap two numbers

def swap(a, b):
  a = a + b
  b = a - b
  a = a - b
  return a, b
 
PREVIOUS NEXT
Tagged: #python #swap #numbers
ADD COMMENT
Topic
Name
1+2 =