You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# 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
|