0

want to get name of variable issued from outside.

For example:

def process(var):
  print name(var)#prints 'nice_name'

nice_name=1
process(nice_name)

Is it even possible in python?

oneat
  • 10,394
  • 16
  • 49
  • 68

1 Answers1

0

No, as we are just passing a value to the function

AB Abhi
  • 2,476
  • 22
  • 30