The Python Oracle

"if var and var2 == getSomeValue()" in python - if the first is false, is the second statement evaluated?'

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

--

Track title: CC C Schuberts Piano Sonata No 13 D

--

Chapters
00:00 Question
00:46 Accepted answer (Score 10)
01:22 Answer 2 (Score 2)
01:38 Answer 3 (Score 2)
02:02 Answer 4 (Score 1)
02:47 Thank you

--

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

Accepted answer links:
[relevant PEP (308)]: http://www.python.org/dev/peps/pep-0308/

Answer 2 links:
[PEP 308]: http://www.python.org/dev/peps/pep-0308/

Answer 4 links:
[Python home page]: http://python.org/

--

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

--

Tags
#python #shortcircuiting

#avk47