Computer Science, asked by ishitaep20, 8 months ago

What will be output by following code? State the reason for the output a,b,c=1,1,2 d=a+b e=1.0 f=1.2 g=2.0 h=e+f Print(c==d) Print(c is d) Print(g==h) Print(g is h)

Answers

Answered by Anonymous
8

Answer:

Hi..

Explanation:

Print (c==d)

>>> True

Because the value of c and d is same..

Print(c is d)

>>>True

As c and have same value..

Print(g==h)

>>>False

As they have different values

Print(g is h)

>>>False

As they have different values...

Hope it helps you

Answered by khanmahira
4

Answer:

print (c==d)

TRUE #as c and d have same value

print (c is d)

TRUE #as c and d have same values

print (g==h)

FALSE #as g and h have different values

print (g is h)

False #as g and h have different values

Explanation:

hope it is very helpful to u all ....plzz mark it as brainliest answer...and don't forget to like it

Similar questions