M
Magnus Lycka
But using the free SDK compiler from MS? That seems elusive.
Have you seen this?
http://www.vrplumber.com/programming/mstoolkit/
But using the free SDK compiler from MS? That seems elusive.
Magnus said:Have you seen this?
http://www.vrplumber.com/programming/mstoolkit/
But it turns out he actually had one, which he graciously provided
in response to my observation. If I had kept my trap shut, I wouldn't
have it, would I?
Magnus said:I completely agree, but you could put your "questions" in
a way that increases your chances of helpful replies...
http://www.catb.org/~esr/faqs/smart-questions.html
[...]
And, strange as it may seem, asking questions the
smart way is sometimes less effective than being a
smartass. Given a chance to say
idiot, you're wrong and here's why...
people will jump all over you. Take this thread,
for example. Of course, if they just call you an idiot
then you haven't gained anything.
But there's nobody like that on comp.lang.python, right?
.... if (a>=b and b>=c and c>=d)])alph = 'abcdefghijklmnopqrstuvwxyz'
len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph]) 456976
len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
.... if (a!=b and b!=c and c!=d and d!=a and b!=d and a!=c)])len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
.... if (a>b and b>c and c>d)])len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
hi,
I'm not sure why this hasn't come up yet, but this seems to beg for
list comprehensions, if not generator expressions. All of the
following run in under 2 seconds on my old laptop:
... if (a>=b and b>=c and c>=d)])alph = 'abcdefghijklmnopqrstuvwxyz'
len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph]) 456976
len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
23751... if (a!=b and b!=c and c!=d and d!=a and b!=d and a!=c)])len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
358800... if (a>b and b>c and c>d)])len([''.join((a,b,c,d)) for a in alph for b in alph for c in alph for d in alph
14950
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.