I'm working on a script where I'm trying to create a list of strings that, at each subsequent character, have a sub for an input character.
my_replacement = input("Replacement character?: ")
orig_strng = ABCDEFGHIJKL
lst =[]
for i in range(len(orig_strng)):
a = function to replace orig_strng[i] with my_replacements
lst.append(a)
If my input is X, the appended lst output from each iteration would look like: XBCDEFGHIJKL, AXCDEFGHIJKL, ABXDEFGHIJKL, etc.
I get that strings themselves are immutable - so i can't directly edit them. How would I be able to tackle this in a python-ic way?