I need a little help with the following. If the answer is already out there and I didn't found it feel free to direct me to it :)
Explanation: I need to use the name of an object to call the object itself (easy) but also that very name as a string itself. So if I use the object 'some_object' inside a function I want to use that object and also to print the objects name - in this case 'some_object'.
some_object = 'xyz'
def some_function(object_name):
print() # should print the objects name
print(object_name)
some_function(some_object) # in this case it should print 'some_object'
# desired output:
# some_object
# xyz
I really hope this is possible. Thank you very much for your time!