Q. What is the output produced by following code?

 

a, b = bool (0), bool (0.0)

c, d =str (0), str (0.0)

print (len(a), len(b))

print (len(c), len(d))

 

Answer =

It will give an error that ‘object of type 'bool' has no len()’.

Post a Comment

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

Previous Post Next Post