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
Emma Richardson -
Mike Young -
Techelopment -
William Kwadwo Owusu -
Top comments (0)