Re: Code golf challenge: XKCD 936 passwords

2013-10-07 Thread sprucebondera
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

Re: Code golf challenge: XKCD 936 passwords

2013-10-07 Thread sprucebondera
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: > > > > > > > > >

Re: Code golf challenge: XKCD 936 passwords

2013-10-08 Thread sprucebondera
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