Vidyalelo
Python · Q21

Formatting and Decorators

Programming · Python · question 21

Q21

What will be the output of the following Python code? def d(f): def n(*args): return ' ' + str(f(*args)) return n @d def p(a, t): return a + a*t print(p(100,0))

A.
100
B.
$100
Answer
C.
$0
D.
0

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board