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
Here's what I did to slice out the "M":
s = 'EXAMPLE' s1 = s[:s.index('M')] + s[s.index('M')+1:]