Fun with Recursion
Jan. 26th, 2009 12:18 pmI've been trying to learn Python, because despite my growing love for Ruby and Rails, it seems that in order to have fun at the cool kids' table I can't avoid it. ;P
Matt Arnold has provided me with the perfect opportunity to learn Python, because he's also learning it in parallel with his Intro to Java class. He brings home his assignments, writes them in Java first, and then rewrites them in Python. I check out his assignments and translate them into Python as well.
His most recent assignment just begged for a chance to test Python's recursion capabilities. ( The project, my code, and an interesting problem... )
All in all, a fun problem to solve. I'm rather enjoying making simple programs more complex than necessary simply for the sake of breaking and fixing things.
( Footnote )
Matt Arnold has provided me with the perfect opportunity to learn Python, because he's also learning it in parallel with his Intro to Java class. He brings home his assignments, writes them in Java first, and then rewrites them in Python. I check out his assignments and translate them into Python as well.
His most recent assignment just begged for a chance to test Python's recursion capabilities. ( The project, my code, and an interesting problem... )
All in all, a fun problem to solve. I'm rather enjoying making simple programs more complex than necessary simply for the sake of breaking and fixing things.
( Footnote )