Home »
MCQs »
Python MCQs
What will be the output of the following Python code? Question 2
30. What will be the output of the following Python code?
x,y = 12,14
if(x+y==26):
print("true")
else:
print("false")
- true
- false
Answer: A) true
Explanation:
In this code the value of x = 12 and y = 14, when we add x and y the value will be 26 so x+y= =26. Hence, the given condition will be true.