2021-10-28 17:37:54 +05:30

8 lines
196 B
Python

# return.none.py
def func():
pass
func() # the return of this call won't be collected. It's lost.
a = func() # the return of this one instead is collected into `a`
print(a) # prints: None