DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to swap two variables without using third variable python
a = 10 b = 20 print(a, b) a = a + b b = a - b a = a - b print(a, b)
PREVIOUS
NEXT
Tagged:
#swap
#variables
#variable
#python
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit