I’m using the .sub(). method, trying to eliminate from a large block of text all characters contained in the punctuation module. However, there’s one character contained in this punctuation module which I don’t want my loop to remove from the text. Here’s what I have so far, where item_str is the text object from which […]
The post Using ‘punctuation’ module – how to exclude one character from sub function? appeared first on BlogoSfera.