Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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))
Add Comment
Please, Sign In to add comment