The Python Oracle

Is 'or' used on the right-hand-side of an assignment pythonic?

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: Hypnotic Puzzle3

--

Chapters
00:00 Question
01:41 Accepted answer (Score 5)
03:59 Answer 2 (Score 5)
05:25 Thank you

--

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

Question links:
https://docs.python.org/2.7/reference/ex...

Accepted answer links:
[documentation of ]: https://docs.python.org/2.7/reference/ex...
[BDFL's FAQ]: http://svn.python.org/projects/python/ta...

--

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

--

Tags
#python #codingstyle #languagelawyer #booleanlogic #conditionaloperator

#avk47