Computer Science, asked by prasathstudies297, 3 months ago

What will be output produced by following code? State reason for this output.



a, b, c = 1, 1, 2

d = a + b

e = 1.0

f = 1.0

g = 2.0

h = e + f

print(c = d)

print(c is d)

print(g == h)

print(g is h)



a.) What output produced by print(c=d) 1

b.) What output produced by print(c is d) 1

c.) What output produced by print(g==h) 1

d.) What output produced by print( g is h) 1

e.) State the reason for false output 1

Answers

Answered by bhumilokhande532
1

Explanation:

a, b, c = 1 , 1 , 2 d = a + b e = 1.0 f = 1.0 g = 2.0 h = e + f print(c == d) print(c is d) print(g == h) print(g is h). # Output. True.

Answered by prakashsakthi2022
0

Answer:

true

true

true

false

so this is the answer

Similar questions
Math, 9 months ago