def decor(fun): def inner(n): if n%2==0: print("Yes") else: print("No") return outer return inner @decor def outer(): print("Thanks You")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)