To display the name of a list in Python, you can simply use the name of the variable that is storing the list. Here's an example:
main.py68 chars3 lines
The above code will output:
main.py33 chars2 lines
This is possible because the variable name my_list
is a reference to the actual list object in memory.
gistlibby LogSnag