0 votes
in Python by
What is the output of the following code?

def star(func): def inner(args, **kwargs): print("" * 3) func(args, **kwargs) print("" * 3) return inner

def percent(func): def inner(*args, **kwargs): print("%" * 3) func(*args, **kwargs) print("%" * 3) return inner

@star @percent def printer(msg): print(msg) printer("Hello")

1)

%%%

***

Hello   

%%%

***

2)

***

***

Hello

%%%

%%%

3)

%%%

***

Hello

***

%%%

4)

***

%%%

Hello   

%%%

***

1 Answer

0 votes
by

4)

***

%%%

Hello   

%%%

***

Related questions

0 votes
asked Jan 19, 2021 in Python by SakshiSharma
+1 vote
asked Jan 19, 2021 in Python by SakshiSharma
...