PythonChallenge - an Amusing Way to Explore Python 43
thesamet writes "The Python Challenge is a
set of riddles that require a little bit of
Python programming to be solved. The purpose of the riddles is to
provide an entertaining way to explore the Python programming language.
The challenge was started late in April this year and it is starting to gain
popularity in the Python community. What people love most about the
challenge is that it makes them poke in Python's module library and
discover new things. It truly demonstrates the great power of Python's included 'batteries.'
The riddles are designed to be solvable by Python beginners, but yet
are challenging even to experienced Python programmers. The first
few riddles are very easy, but it gradually becomes more and more
challenging. Many people reported that playing the challenge is highly
addictive and it is great fun.
The site also features discussion forums where users can ask for hints.
Additionally, after solving a riddle, its solution is available in a
wiki form."
not to nitpick here (Score:5, Funny)
python is ugly and unreadable.
Re:not to nitpick here (Score:2, Interesting)
Re:not to nitpick here (Score:4, Informative)
Re:not to nitpick here (Score:1, Informative)
You must be a very good computer scientist to reject a language because it has a style guide that's enforced - and to have a strong opinion about a language that you obviously don't know. Wow.
My recommendation to you is to spend 10 minutes reading this tutorial [hetland.org] and playing with the language, then to spend couple of minutes browsing through the documentation [python.org].
Then when you have a quick scripting project you decide to undertake - build a solution in Perl, but take a couple of
Re:not to nitpick here (Score:1)
It's the same puzzle... (Score:2)
Each riddle must be solved with oneliner in Perl.
And credit where credit is due. I admit seeing this suggestion (IIRC) on Lambda the Ultimate.
yeah, that... (Score:5, Funny)
It's even more addictive and fun to express solutions as perl one-liners.
Re:yeah, that... (Score:2)
Re:yeah, that... (Score:1, Funny)
Yeah, like:
exec("perl -e '...'")
Re:yeah, that... (Score:2)
That cheat isn't necessary to write one-liners though.
Re:yes, a lovely puzzle. (Score:2)
Re:yes, a lovely puzzle. (Score:4, Informative)
<snip>
Where did you get the idea from?
I was inspired while I was playing notpron. It just occured to me that the same style of riddles can serve as a way to discover Python.
<snip>
Also check out RubyQuiz (Score:5, Informative)
Re:Also check out RubyQuiz (Score:2)
FWIW - I've been struggling with choosing between Python and Ruby for some personal projects. These two sites should help tremendously since, if I go by which one I enjoy reading more, then I have a winner.
Re:Also check out RubyQuiz (Score:1)
Re:Also check out RubyQuiz (Score:2)
Re:Also check out RubyQuiz (Score:2)
Re:Also check out RubyQuiz (Score:1)
A good forum would be nice too.
Re:Okay, I just don't get numer 3. (Score:2)
Re:4) follow the chain (Score:2)
Re:4) follow the chain (Score:3)
"I'm too pissy to do puzzles. Fuck you all for thinking Python puzzles might be fun."
Python? (Score:2, Interesting)
Cross out the "Python" above. There is no need to use Python to solve these puzzles. I use Haskell [haskell.org]. Some other language might work for someone else. There is nothing Python specific about the challenges. But they are indeed quite amusing.
Re:Python? (Score:1)
Re:Python? (Score:2, Insightful)
Re:Python? (Score:2)