Skip to content

Instantly share code, notes, and snippets.

@marceloslacerda
Last active April 29, 2016 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marceloslacerda/7bc6b1e29391aab72c42524c98500cba to your computer and use it in GitHub Desktop.
Save marceloslacerda/7bc6b1e29391aab72c42524c98500cba to your computer and use it in GitHub Desktop.
make everything better again on irc
def trumpfy(string='AMERICA'):
bold=''
colors = ['5,1', '16,1', '2,1']
words = ['MAKE', string, 'GREAT', 'AGAIN']
def freedomfy(word):
for i in range(len(word)):
yield colors[i%3] + word[i].upper()
result = bold + colors[0] + ' ' + ' '.join([''.join((list(freedomfy(word)))) for word in words]) + ' '
return result
import sys
if __name__ == '__main__':
print(trumpfy(sys.argv[1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment