Can a Python (3) function "know" the literal value of a parameter passed to it?
In the following example, I want the function listProcessor to be able to print the name of the list passed to it:
list01 = [1, 3, 5]
list02 = [2, 4, 6]
def listProcessor(listName):
"""
Function begins by printing the literal value of the name of the list passed to it
"""
listProcessor(list01) # listProcessor prints "list01", then operates on the list.
listProcessor(list02) # listProcessor prints "list02", then operates on the list.
listProcessor(anyListName) # listProcessor prints "anyListName", et cetera…
I've only recently resumed coding (Python 3). So far everything I've tried "interprets" the parameter and prints the list rather than its name. So I suspect I'm overlooking some very simple way to "capture" the literal value of parameters passed to a Python function.
Also, in this example I've used a list's name as the parameter but really want to understand how to capture any type of parameter's literal value.