Test yourself on the functools module in Python.
Quiz
1.
What will be the output of this functool.partial()
code snippet?
from functools import partial
def algebra(x, y):
return 2 * x + 6 * y
solve = partial(algebra, x=2, y=3)
print (solve)
A.
2 6
B.
22
C.
Partial
object
D.
Error
1 / 3