how to write a program to “identify the line number of the function call?”
python inspect module provides options to locate the line number but,
def di():
return inspect.currentframe().f_back.f_lineno
this python code prints the current line number.
Why not use
inspect.stack()?