mirror of
https://github.com/Xevion/exercism.git
synced 2026-02-01 00:24:16 -06:00
acronym exercise
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import string, re
|
||||
def abbreviate(words):
|
||||
return ''.join(word.strip(string.punctuation)[0] for word in re.split(r'[\s-]+', words)).upper()
|
||||
Reference in New Issue
Block a user