There is a string, for example. EXAMPLE.
EXAMPLE
How can I remove the middle character, i.e., M from it? I don\'t need the code. I want to know:
M
This is probably the best way:
original = "EXAMPLE" removed = original.replace("M", "")
Don't worry about shifting characters and such. Most Python code takes place on a much higher level of abstraction.