You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
140 B
9 lines
140 B
13 hours ago
|
def add(x, y):
|
||
|
return x + y
|
||
|
|
||
|
def calculate(func, x, y):
|
||
|
return func(x, y)
|
||
|
|
||
|
result = calculate(add, 4, 6)
|
||
|
print(result) # prints 10
|