Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
if <any number> or <any variable> is always true, if the value is set. It's kind a not null-condition. The integer representation of a boolean is different from that and this is, what you checked with the last both statements. Only 1 is equal to true.
5th Jul 2020, 3:26 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
read my name if you know the answer
27th Nov 2020, 12:57 PM
if you read this you're small
+ 1
Can you explain not operator clearly
11th Dec 2020, 4:38 AM
Kalaiyarasan
Kalaiyarasan - avatar
0
im confused-
30th Sep 2020, 11:07 AM
Zara Swift
Zara Swift - avatar