Created
November 17, 2017 00:37
-
-
Save richo/2f8af79080fc9d2979f5400b59ed0234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import string | |
words = sys.argv[1:] | |
def embiggen_word(word): | |
def inner(_word): | |
for i in word.lower(): | |
if i in string.ascii_lowercase: | |
yield ":big-%s:" % i | |
else: | |
yield i | |
return ''.join(inner(word)) | |
embiggened = map(embiggen_word, words) | |
print ":sparkles:%s:end_sparkles:" % (' '.join(embiggened)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment