Guest User

Untitled

a guest
Nov 18th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. import sys
  2. import string
  3.  
  4. words = sys.argv[1:]
  5. def embiggen_word(word):
  6. def inner(_word):
  7. for i in word.lower():
  8. if i in string.ascii_lowercase:
  9. yield ":big-%s:" % i
  10. else:
  11. yield i
  12. return ''.join(inner(word))
  13.  
  14. embiggened = map(embiggen_word, words)
  15. print ":sparkles:%s:end_sparkles:" % (' '.join(embiggened))
Add Comment
Please, Sign In to add comment