A
Q. Consider the following code segment and identify what will be the output of given Python code?
Code:
a = int(input("Enter an integer: "))
b = int(input("Enter an integer: "))
if a <= 0:
b = b +1
else:
a = a + 1
b = int(input("Enter an integer: "))
if a <= 0:
b = b +1
else:
a = a + 1
- Correct Answer - Option(C)
- Views: 7
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.