Result from printing statement and if statement differ

enter image description here

i hope now you will able to understand the concept of Logical AND (&&) :-

Condition 1 Condition2  Output
true        true        true
true        false       false
false       true        false
false       false       false

one the TRUE + TRUE Output will be TRUE otherwise output will be FALSE.

Leave a Comment