Remove char at specific index – python

Use slicing, rebuilding the string minus the index you want to remove:

newstr = oldstr[:4] + oldstr[5:]

Leave a Comment