def a (func):
  def c (*n):
    print("Before")
    func (*n)
    print("After")
  return c
@a
def b (*n):
    number = 0
    for num in n:
        number += num 
    print(number)
b (3,7,5,9)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: