1.

n the code shown below, which function is the decorator? def mk(x): def mk1(): print("Decorated") x() return mk1 def mk2(): print("Ordinary") p = mk(mk2) p()

A. p()
B. mk()
C. mk1()
D. mk2()
Answer» C. mk1()


Discussion

No Comment Found