Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python swap two elements

a = 1
b = 2
# Swap a and b
a, b = b, a
 
PREVIOUS NEXT
Tagged: #python #swap #elements
ADD COMMENT
Topic
Name
5+9 =