Vidyalelo
Python · Q36

Formatting and Decorators

Programming · Python · question 36

Q36

The two snippets of the following Python codes are equivalent. CODE 1 @f def f1(): print(“Hello”) CODE 2 def f1(): print(“Hello”) f1 = f(f1)

A.
True
Answer
B.
False

Answer: Option A

Solution

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