mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
11 lines
222 B
Python
11 lines
222 B
Python
# Convert all punctuation characters except '_', '*', and '.' into spaces.
|
|
def depunctuate(s):
|
|
'''A docstring'''
|
|
"""Docstring 2"""
|
|
d = ""
|
|
for ch in s:
|
|
if ch in 'abcde':
|
|
d = d + ch
|
|
else:
|
|
d = d + " "
|
|
return d
|