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
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
For further actions, you may consider blocking this person and/or reporting abuse
Kudzai Murimi -
shadowy-pycoder -
Dmitry Romanoff -
Aidas Bendoraitis -
Top comments (0)