Help me with this code explain me 4 line

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

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Help me with this code explain me 4 line." Shoeb Syed | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/
HARVARD
Shoeb Syed | Sciencx Tuesday July 16, 2024 » Help me with this code explain me 4 line., viewed ,<https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/>
VANCOUVER
Shoeb Syed | Sciencx - » Help me with this code explain me 4 line. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/
CHICAGO
" » Help me with this code explain me 4 line." Shoeb Syed | Sciencx - Accessed . https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/
IEEE
" » Help me with this code explain me 4 line." Shoeb Syed | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/help-me-with-this-code-explain-me-4-line/. [Accessed: ]
rf:citation
» Help me with this code explain me 4 line | Shoeb Syed | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.