Re: Python vs Clojure

This entry was moved to NISHIO Hirokazu's blog


Josh Robb said...

I'm probably misunderstanding - but shouldn't that be:

print max(s for s in (x * y
        for x in range(111, 1000)
        for y in range(x, 1000))
    if list(str(s)) == list(reversed(str(s))))

Anonymous said...

Much better.

The stack of parenthesis at the end is slightly amusing. :-)

NISHIO Hirokazu said...

>Josh Robb
Oh, thanks. I didn't care on that because I just wanted to show that Python is not such a bad language.

Anonymous said...

Python is a wonderful language, it's great that you can do stuff like this.

Javier said...

you have new opportunities to defend python from this dangerous newcomer ;-)