enumerate string pythonm code example Example: enumerate string pythonm >>> for i, c in enumerate('test'): ... print i, c ... 0 t 1 e 2 s 3 t