The Python Oracle

Understand Python swapping: why is a, b = b, a not always equivalent to b, a = a, b?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands

--

Chapters
00:00 Question
00:58 Accepted answer (Score 141)
02:34 Answer 2 (Score 72)
03:13 Answer 3 (Score 34)
04:19 Answer 4 (Score 11)
04:57 Thank you

--

Full question
https://stackoverflow.com/questions/6815...

Accepted answer links:
[python.org]: https://docs.python.org/3/reference/simp...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #list #indexing #swap

#avk47