0

Why is the output of print (1 == 1) and (not (2 + 2 > 3)) coming as True?

Ideally 2+2 is greater than 3, hence true. If we put 'not' then that should be make true to false. First condition 1==1 is true. Between both is AND. True AND False should result in False.

8th Mar 2017, 3:35 PM
Gaurav Chaudhary
Gaurav Chaudhary - avatar
3 odpowiedzi
0
where it is coming True?
8th Mar 2017, 4:00 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
Can't be true if there is an AND in between them
9th Mar 2017, 7:24 PM
Hasnain Hsni
Hasnain Hsni - avatar
0
in the code playground it is coming as true (when using web browser in laptop)
10th Mar 2017, 6:31 AM
Gaurav Chaudhary
Gaurav Chaudhary - avatar