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
Can you explain why this result came?
ReplyDeleteBecause print statement does not return anything.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )