The following code generating an error that reads “TypeError: wrap() takes 0 positional arguments”. Can you please explain the reason and the possible solution to this, please.
'''OUTPUT FORMAT
***
INVOICE #128
***
END OF PAGE
'''
#your code goes here
def decor(func):
def wrap():
print("***")
func()
print("***")
print("END OF PAGE")
return wrap
@decor
def invoice(num):
print("INVOICE #" +num)
invoice(input());