Created
January 15, 2015 21:58
-
-
Save JosephSalisbury/3a77e2c2598d9f0ec3b4 to your computer and use it in GitHub Desktop.
Colour Chooser
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
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