Commit bc68f637 authored by logesh.n's avatar logesh.n

basic decorator operation

parents
""" A Basic working of decorator """
def function1(function):
def wrapper():
print("hello")
function()
print("good bye")
return wrapper
@function1
def function2():
print("Function 2")
function2()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment