DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python sweep two numbers
def swap(a, b): a = a + b b = a - b a = a - b return a, b
PREVIOUS
NEXT
Tagged:
#python
#sweep
#numbers
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit