import contextlib
@contextlib.contextmanager
def my_mgr(s,e):
print(s)
yield s+" "+e
print(e)
if __name__=="__main__":
with my_mgr("Start","End") as f:
print(f)
@contextlib.contextmanager
def my_mgr(s,e):
print(s)
yield s+" "+e
print(e)
if __name__=="__main__":
with my_mgr("Start","End") as f:
print(f)