How about this: dirList = ['depth1', 'depth2', 'depth3'] string = """position"""
for x in range(len(dirList)): string += '>> %s' % dirList.pop(0) print string flamesrock wrote: > Thanks for all the responses :) > > You're right, Kent. That does exactly what I need it to. > > Anyways.. if there isn't a prepend function, I'm going to request it > from the devs. Would be cool to see that in future versions of python. -- http://mail.python.org/mailman/listinfo/python-list