2009-10-16

Re: Python vs Clojure

This entry was moved to NISHIO Hirokazu's blog

5 comments:

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.

Unknown said...

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

http://blog.bestinclass.dk/index.php/2009/10/python-vs-clojure-reloaded/