mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 13:15:00 -06:00
3 lines
141 B
Python
3 lines
141 B
Python
import string, re
|
|
def abbreviate(words):
|
|
return ''.join(word.strip(string.punctuation)[0] for word in re.split(r'[\s-]+', words)).upper() |