School has wrapped up for the semester, at least for me. (Yes, I’m aware it is mid-October. Yes, I’m aware normal people are dealing with mid-terms. What can I say; that’s the way the St. Ed’s New College schedule worked out this time around.)
Now that I’ve got some free time, I can engage in some useful projects, like more Project e work (I’ve got a long multi-part post in the works that I hope to finish soon), updating the SDC pages, and perhaps some outside study.
I’ve written here before about the MIT OpenCourseWare initiative, and I decided this would be as good a time as any to start working through 6.00, “Introduction to Computer Science and Programming“. As I was reviewing the various readings, a thought came to me.
“Hey,” I said to myself, “wouldn’t it be nifty to blog this as you’re taking it?”
“That’s a definition of ‘nifty’ I was previously unaware of,” I responded.
“It’d give you some motivation,” I said.
“Why am I talking to myself?” I responded.
“I don’t know,” I said. “Have you considered medication?”
Anyway, my need for psychotropic medications aside, this seems like a good idea, if only to give my loyal readers something to laugh at. So…
My code for problem set 1. (This has been tested on Project e with Python 2.6.2, on the MacBook with Python 2.5, and on the Nokia with Python 2.5.2. I haven’t tested it on my work machine yet.)
Comments on my code or coding style are welcome; as a matter of fact, they are downright encouraged.