Skip to content

Instantly share code, notes, and snippets.

@JosephSalisbury
Created January 15, 2015 21:58
Show Gist options
  • Save JosephSalisbury/3a77e2c2598d9f0ec3b4 to your computer and use it in GitHub Desktop.
Save JosephSalisbury/3a77e2c2598d9f0ec3b4 to your computer and use it in GitHub Desktop.
Colour Chooser
from hashlib import md5
from sys import argv
def main():
text = raw_input()
hex_code = md5(text).hexdigest()[:6]
print '#%s' % hex_code
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment