My solutions to Google's Python class