DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+9 =
Submit