Code golf challenge: XKCD 936 passwords

Rob Day rkd at rkd.me.uk
Tue Oct 8 18:27:51 EDT 2013


On 08/10/13 07: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))
>
>
print("imploring epsilon decamp graveyard's")
# Chosen by fair random sampling, guaranteed to be random

Comments don't count as code, right? ;)



More information about the Python-list mailing list