2009-10-16
Subscribe to:
Post Comments (Atom)
We are hackers. We've used a lot of languages. Now we are going to learn another language. It is English. --- What is Hacker's Cafe? Good question. It have held in Tokyo. Let's get together with laptops, hack and hack. Feel free to join us. Please contact us: akio0911 (at) gmail (dot) com. Web site: Hacker's Cafe
5 comments:
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))))
Much better.
The stack of parenthesis at the end is slightly amusing. :-)
>Josh Robb
Oh, thanks. I didn't care on that because I just wanted to show that Python is not such a bad language.
Python is a wonderful language, it's great that you can do stuff like this.
you have new opportunities to defend python from this dangerous newcomer ;-)
http://blog.bestinclass.dk/index.php/2009/10/python-vs-clojure-reloaded/
Post a Comment