0

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.

martineau
  • 119,623
  • 25
  • 170
  • 301
Tee Un
  • 1
  • 2

0 Answers0