let's say I have a function
def argname(nr):
...
and I'd like to have this function print the name (str) of the arg passed when calling it, eg
n = 9
argname(n)
this should print "n".
Is this somehow possible in Python 3 ?
let's say I have a function
def argname(nr):
...
and I'd like to have this function print the name (str) of the arg passed when calling it, eg
n = 9
argname(n)
this should print "n".
Is this somehow possible in Python 3 ?