Question 4
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 4 of 18 in the IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIA4 26 Oct). It carries 3 marks.