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,778
  • 16
  • 52
  • 70

1 Answers1

0

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

Abhishake Gupta
  • 2,939
  • 1
  • 25
  • 34