I'm removing an char from string like this:
S = "abcd"
Index=1 #index of string to remove
ListS = list(S)
ListS.pop(Index)
S = "".join(ListS)
print S
#"acd"
I'm sure that this is not the best way to do it.
EDIT I didn't mentioned that I need to manipulate a string size with length ~ 10^7. So it's important to care about efficiency.
Can someone help me. Which pythonic way to do it?