Is it possible to create a function in Python to detect and return the row number which the function is called?
For example, if the function is called at the line 32, the function returns 32.
I know that some libraries can do this, but I'd like to do it from scratch.