Question 2
Consider the following Python code. What will be the output?x, y, z = "", "python", 0 print((x or y) and (z or len(y)))
6
""
"python"
0
True
Consider the following Python code. What will be the output?x, y, z = "", "python", 0 print((x or y) and (z or len(y)))
6
""
"python"
0
True
Correct answer
6
Question 2 of 14 in the IIT Madras BS Python Programming (Python (ES)) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M ES DIPLOMA AN EXAM QED4 26 Oct). It carries 3 marks.