pythonクイズ ref: http://qiita.com/puriketu99/items/ae9cff42760f198b7bd9