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
Ethan Lee -
Ali Alp -
Arindam Majumder -
Libor Jelinek -
Top comments (0)