0
Trying to solve generating in intermediate python
Here is my code : i would like to know what is wrong with my code
6 Réponses
0
#your code goes here
def decor(func):
def wrap(num):
print("***")
func(num)
print("***")
func(num)
return wrap
@decor
def invoice(num):
print("INVOICE #" +num)
invoice(input());
0
Are you trying to do the 'Generating...' practice or the 'Collecting reports' practice? Because, your code doesn't go with your original post as decorators haven't been covered and it looks like your code has more to do with the 'Collecting reports' practice.
0
Trying to solve 'Generating....'
0
I don't see any problem. Maybe you typed func(num) and print("***") twice, delete the additional one and try again.
0
It did not work
0
ChaoticDawg sorry it was a mistake it is is actually collecting reports practice
But am also having issue with 'Generating....'