πŸ“Š Problem Solving and Python Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (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.


Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
376
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate