You should think a little bit yourself:
AlphaNum = "abcdefg0123456p" currentIndex = 2 replaceList = ['a', 'b', 'c', 'd', 'e'] for i in range(0, currentIndex): replaceList[i] = AlphaNum[0] for x in replaceList: print(x)