Furthermore, the looping process with Python will be unique to your specific purpose. In full, here is the example including a looping process that loops through and prints each layer:
>>> from arcpy import env
>>> mxd = arcpy.mapping.MapDocument("CURRENT")
>>> layers = arcpy.mapping.ListLayers(mxd)
>>> print layers
[<map layer u'CP_Test'>, <map layer u'points'>, <map layer u'polys'>, <map layer u'testlines'>, <map layer u'points'>, <map layer u'Arizona_Cities'>, <map layer u'Arizona_Cities'>]
>>> for lyr in layers:
... print lyr
...
CP_Test
points
polys
testlines
points
Arizona_Cities
Arizona_Cities
Matt