This content originally appeared on DEV Community and was authored by Shoeb Syed
def draw(a):
def draw_line():
print(""*20)
a()
print(""*20)
return draw_line
@draw
def fun1():
print("Hello")
@draw
def fun2():
print("PYTHON")
fun1()
fun2()
Output
Hello
PYTHON
This content originally appeared on DEV Community and was authored by Shoeb Syed

Shoeb Syed | Sciencx (2024-07-16T07:01:56+00:00) Help me with this code explain me 4 line. Retrieved from https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.