Hi. I'm a little confused and I want to understand this better.
If I enter:
...the python console returns <map layer u'A'>
If I enter:
...the console returns just the layer name, A
However, if I use slice notation as follows:
...why does Python return [<map layer u'A'>, <map layer u'B'>] instead of just A,B ?
Thanks in advance for helping me to understand!
If I enter:
Code:
arcpy.mapping.ListLayers(mxd)[0]If I enter:
Code:
print arcpy.mapping.ListLayers(mxd)[0]However, if I use slice notation as follows:
Code:
print arcpy.mapping.ListLayers(mxd)[0:2]Thanks in advance for helping me to understand!