Write a function namely fun that takes no parameters and always returns None.
def fun(): return
def fun(): return r = fun() print(r)
The function fun() returns None. When called, its return value is assigned to r, which holds None. Then print(r) outputs None.
fun()
None
r
print(r)