I was wondering whyTrue and []
returns [] instead of False
Is the expression a syntactic sugar ?
The answer is found at 5.10. Boolean Expressions:
The expression
x and y
first evaluates x; if x is false, its value is returned; otherwise, y is evaluated and the resulting value is returned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With