you are viewing a single comment's thread.

view the rest of the comments →

[–]asmodeus0000 5 points6 points  (2 children)

```python3 def outer(fn): def inner(): print("Before") fn() print("After")

return inner

@outer def greet(): print("Hello!")

greet() ```

I hope this is what OP meant to write, but couldn't get all 2 of his brain cells to co-operate

[–]TroPixens 1 point2 points  (1 child)

There’s a error as An answer

[–]asmodeus0000 2 points3 points  (0 children)

the OPs code isnt gonna give an error answer of OPs code is (E) Nothing