Files
orch/eval/add-function/solution/text.py
T

10 lines
131 B
Python

import re
def shout(s):
return s.upper() + '!'
def slugify(s):
return re.sub(r'[^a-z0-9]+', '-', s.lower()).strip('-')