On Monday, October 7, 2013 8:17:21 PM UTC-10, 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))
>
>
>
> Sec
On Monday, October 7, 2013 8:45:39 PM UTC-10, spruce...@gmail.com wrote:
> On Monday, October 7, 2013 8:17:21 PM UTC-10, Chris Angelico wrote:
>
> > Who's up for some fun? Implement an XKCD-936-compliant password
>
> >
>
> > generator in Python 3, in less code than this:
>
> >
>
> >
>
> >
On Tuesday, October 8, 2013 5:47:56 AM UTC-10, rand...@fastmail.us wrote:
> Importing random as r doesn't actually save anything, since " as r" is
> the same five characters you saved from the one use of it.
I realize, it just looks nicer than the original __import__, and since it
doesn't add any