Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Swapping Variables

x = 10
y = 11


x, y = y, x
"Swapping by simultaneously creating a tuple and unpacking it"

print(x, y)
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #Swapping #Variables
ADD COMMENT
Topic
Name
4+5 =