I'm trying to make a list of 'blanks' that can be filled in individually later. The length of the list is dependent on a value (currentWord
) which is why I can't hard-code it.
iter8 = len(currentWord)
for i in currentWord:
answerListNEW.append(' ')
#
for i in currentWord:
answerListNEW[i] = '_'
I get errors that the index must be integer, not str. Is there a way for the program to accept the 'blank space' ? For simplicity, lets say currentWord = 'alpha' so that it's simple and there's just 5 iterations.
SECONDLY, I would also like to print that list as a concatenated string so it's just '_____'. (That way when values are added it becomes 'v' and such.
Thanks in advance!!