Code golf challenge: XKCD 936 passwords

Tim Chase tim at thechases.com
Tue Oct 8 12:08:20 EDT 2013


On 2013-10-08 17:17, Chris Angelico wrote:
> Who's up for some fun? Implement an XKCD-936-compliant password
> generator in Python 3, in less code than this:
> 
> print(*__import__("random").sample(open("/usr/share/dict/words").read().split("\n"),4))
> 
> Second challenge: Use it for generating all your passwords :)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
9104: ordinal not in range(128)

-tkc





More information about the Python-list mailing list