79204891

Date: 2024-11-19 20:06:06
Score: 5
Natty: 4
Report link

I´m having the same problem and I can't see where the error is. My code:

def funcion_decoradora(funcion_parametro): def funcion_interior(*args): print("Vamos a realizar un cálculo: ") funcion_parametro(*args) print("Hemos terminado el cálculo") return funcion_interior()

@funcion_decoradora def suma(num1, num2, num3): print(num1+num2+num3)

print()

@funcion_decoradora def resta(num1, num2): print(num1-num2)

suma(7,5,8)

resta(4,9)

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • User mentioned (1): @funcion_decoradora
  • User mentioned (0): @funcion_decoradora
  • Low reputation (1):
Posted by: Victor Vacca