Quiz Yourself on Functools Module

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)

2*x + 6*y

D)

Error

Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.