0

Trying to solve generating in intermediate python

Here is my code : i would like to know what is wrong with my code

25th Mar 2021, 11:49 AM
Simisola Osinowo
Simisola Osinowo - avatar
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());
25th Mar 2021, 11:50 AM
Simisola Osinowo
Simisola Osinowo - avatar
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.
25th Mar 2021, 12:29 PM
ChaoticDawg
ChaoticDawg - avatar
0
Trying to solve 'Generating....'
25th Mar 2021, 12:33 PM
Simisola Osinowo
Simisola Osinowo - avatar
0
I don't see any problem. Maybe you typed func(num) and print("***") twice, delete the additional one and try again.
25th Mar 2021, 12:37 PM
iTech
iTech - avatar
0
It did not work
25th Mar 2021, 12:41 PM
Simisola Osinowo
Simisola Osinowo - avatar
0
ChaoticDawg sorry it was a mistake it is is actually collecting reports practice But am also having issue with 'Generating....'
25th Mar 2021, 12:43 PM
Simisola Osinowo
Simisola Osinowo - avatar