Cheap Flight Twitter Bot in Python

I love to travel.  And something that makes that a lot easier is cheap flights.  There are many websites and even twitter accounts that exist only to point out cheap flights.  For about a year I’ve followed several twitter accounts for fare deals and have alerts turned on so that I don’t miss something good.  Currently, I get about 50 alerts a day that light up my phone and distract me from whatever I’m doing… but only one or two of those are actually from my home airport of DEN.  So I created a python script to help me out.

Continue reading “Cheap Flight Twitter Bot in Python”


Average President’s Birthday

Nate Silver (of 538 fame) tweeted an interesting problem today. Somebody on Reddit had averaged the birthdays of all the presidents and found it to be July 4th (link). Nate responded that it was wrong and said the real average is sometime in late November. I thought it was an interesting problem and figured I’d work on my python skills so I decided to see for myself and threw in a couple of alterations as well.

Continue reading “Average President’s Birthday”

Project Euler Problems 1-10 in Python

I’m working to bone up on my python skills so I decided to spend my Sunday doing problems 1-10 from Project Euler.  I’ve done them before with C or Java but this was my first time with Python.  Here are the problems and my commented code for each one in case it interests anybody.

Continue reading “Project Euler Problems 1-10 in Python”