def start(ok):
def now():
print("This is First line")
ok()
print("This is last line")
return now
@start # U can use this for decorator
def ok():
print("This is middle line")
# ok = start(ok) # Another way to use decorator
ok()
Comments
Post a Comment