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


(a)

>>> print(print("Hola"))


(b)

>>>print(print ("Hola", end = ""))


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


Answer =

(a)
Hola
None

(b)
HolaNone

2 Comments

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

  1. Can you explain why this result came?

    ReplyDelete
    Replies
    1. Because print statement does not return anything.

      Delete

Post a Comment

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

Previous Post Next Post