Q. What would be the output produced by following code? Why?

 

a, b, c = 1, 1, 1

d = 3

e = a + b + c - d

f = a + b + c == d

print(e)

print(f)


Answer :- 

0
True

>>> 

Because a + b + c = 3 and d = 3. So, e = 0 and f = True.

6 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post