Pascal's Triangle in Python (with semi-decent printing)
Today, I ran across a Hacker News thread where someone mentioned that they often ask job applicants to whiteboard a function
that would return a row of Pascal's Triangle.
I couldn't resist, so and came up with this:
Obviously, I was less interested in returning the row as I was in building the triangle itself and printing it. Returning the actual row is left as an exercise to the reader.