On 10/07/2013 11:17 PM, 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 :)
[1] https://en.wikipedia.org/wiki/Code_golf
[2] http://xkcd.com/936/
ChrisA
So how about finding the last word that starts with
each lower case letter of the alphabet in turn:
azures
bywords
czars
...
Tobiah
--
https://mail.python.org/mailman/listinfo/python-list