Q. What will be the output produced by following code?


(a)

>>> str(print()) + "One"


(b)

 >>> str(print("hello")) + "One"


Match your result after executing above statements. Can you explain why this result came?


Answer =

(a)
'NoneOne'

(b)
hello
'NoneOne'

Post a Comment

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

Previous Post Next Post