Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) What will be the output of the following
Python code snippet?
not(10<20) and not(10>30)

(A) true
(B) false
(C) error
(D) no output
Correct answer : Option (B) - false

Explanation:
 the expression not(10<20) returns false. the expression not(10>30) returns true. the and operation between false and true returns false. hence the output is false.

Share

Discusssion

Login to discuss.