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")
  1. true
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.