The Python Oracle

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

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 Understand Python Swapping: Why Is A, B = B, A Not Always Equivalent To B, A = A, B?
00:47 Accepted Answer Score 144
02:06 Answer 2 Score 72
02:42 Answer 3 Score 35
03:39 Answer 4 Score 11
04:15 Answer 5 Score 7
05:27 Thank you

--

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

--

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

--

Tags
#python #python3x #list #indexing #swap

#avk47