In [4]:
import os
i=28

In [6]:
for fileName in os.listdir("."):
    os.rename(fileName, 'image'[i])
    i+=1


---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-6-ec4e13263488> in <module>()
      1 for fileName in os.listdir("."):
----> 2     os.rename(fileName, 'image'[i])
      3     i+=1

IndexError: string index out of range

In [ ]: