def foo(x, y): z = x + y value = foo(10, 10) print(value)
def foo(x, y): return x + y value = foo(10, 10) print(value)
Used when an assignment is done on a function call but the inferred function doesn’t return anything.