I want to delete i.e. character number 5 in a string. So I did:
del line[5]
and got: TypeError: \'str\' object doesn\'t support item deletion
So no I won
I use a function similar to :
def delstring(mystring, indexes): return ''.join([let for ind, let in enumerate(mystring) if ind not in indexes])
indexes should be an iterable (list, tuple..)