aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples/x.py
blob: 12c4b71dfbaa6c79f3749fe89ebae201b225cbe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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