[Solved] Why is the result of the and operator equal to [1,1,1] here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

[Solved] Why is the result of the and operator equal to [1,1,1] here?

https://code.sololearn.com/caVDVif7338l/?ref=app

7th Mar 2020, 10:18 PM
Sonic
Sonic - avatar
4 Answers
+ 6
Thanks Alexandr
7th Mar 2020, 11:34 PM
Sonic
Sonic - avatar
+ 5
Thanks Seb TheS
7th Mar 2020, 11:34 PM
Sonic
Sonic - avatar
+ 3
A and B actually means: A if not A else B not operator will always evaluate a boolean value.
7th Mar 2020, 11:01 PM
Seb TheS
Seb TheS - avatar
0
heloo
8th Mar 2020, 12:06 PM
durdymyrat