A bunch of my friends are participating in a Thirty Days project this month: Every day in June, they’re doing something creative, like writing fiction, drawing dead astronauts, or taking photos.
I wanted to play too! My plan is to write 30 python scripts this month. It’s already helped me learn new things about the language. So far:
30 Days of Python:
- Day 1: Wrote a quick-and-dirty tax calculator (input taxable income, get tax bill)
- Day 2: Installed Python3 and got a python script to run on my server at JDHarper.com. (Not linked: it was basically a “Hello World” script. The trick was that my web host, a2hosting.com, only displays the output of python scripts if they are in the cgi-bin folder, if they have as their first line a shebang indicating where the python interpreter is, and if they print “Content-type: text/html” as their first line of output.)
- Day 3: Set up a python script to process emails sent to a private email address: this one records their subject lines in a text file.
Hopefully, I will be able to come up with 30 different things to write this month!