Q. What will following code print?

 

(a)

a = va = 3

b = va = 3

print (a, b)

 

(b)

a = 3

b = 3.0

print (a == b)

print (a is b)

 

 

Answer =

(a)

Output:

 

3 3

 

(b)

Output:

 

True

False

 

Post a Comment

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

Previous Post Next Post