I want to remove ALL symbols from my string efficiently.
x = hello!! r = dict.fromkeys(map(ord, '\n ' + string.punctuation)) x.translate(r) I expected this to remove all symbols instead of only a full stop (.)
I want to remove ALL symbols from my string efficiently.
x = hello!! r = dict.fromkeys(map(ord, '\n ' + string.punctuation)) x.translate(r) I expected this to remove all symbols instead of only a full stop (.)