ch04
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user