mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -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
|