(stringList)
| 7 | import re |
| 8 | |
| 9 | def puncRemove(stringList): |
| 10 | output = [] |
| 11 | for item in stringList: |
| 12 | st = "" |
| 13 | for sym in item: |
| 14 | if sym not in string.punctuation: |
| 15 | st = st + sym |
| 16 | else: |
| 17 | st = st + " " |
| 18 | output.append(st) |
| 19 | return output |
| 20 | |
| 21 | def removeStringPunctuations(string): |
| 22 | string = re.sub(r'[^\w]', ' ', string) |
nothing calls this directly
no outgoing calls
no test coverage detected