+ 1
Question about lazy evaluation in python
When using an âorâ statement or an âandâ statement to compare 2 non-boolean values, why does âorâ return the first value and why does âandâ return the second? For example: 3 or 7 returns 3, 3 and 7 returns 7.
1 Antwort