DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python swap numbers
x, y = 10, 20 print(x, y) # 10 20 x, y = y, x print(x, y) # 20 10
PREVIOUS
NEXT
Tagged:
#python
#swap
#numbers
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit