After running the following code. I observed that the return type of a print()
is None. Please explain why and how is it so?
>>> v = print(7) >>> v >>> type(v) <class 'NoneType'> >>>
>>> type(print(y))
7
<class 'NoneType'>
>>> type(None)
<class 'NoneType'>