Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

swap variables in python

a = 5
b = 6
# now swp the variables
a, b = b, a
# to swap two variables you need an other string harder than the first one
c = a	# 5
a = b	# 6
b = c	# 5
 
PREVIOUS NEXT
Tagged: #swap #variables #python
ADD COMMENT
Topic
Name
8+5 =