Q. What is the output of the following code?

Code:
x = True
y = False
z = False
  
if x or y and z: 
    print "TANMAY"
else: 
    print "tanmay"
  • (A) TANMAY
  • (B) tanmay
  • (C) The code does not display anything
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) TANMAY
Explanation: (True or False) evaluates to True.
Explanation by: Tanmay
(True or False) evaluates to True.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
214
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
98%
Success Rate