<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seinzumtode</author_name>
  <author_url>https://blog.hatena.ne.jp/seinzumtode/</author_url>
  <blog_title>how to code something</blog_title>
  <blog_url>https://seinzumtode.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>コーディングを支える技術を読んでて再帰の話が出てきたので 読む前にまず自分で実装してみた。 #/usr/bin/env python #-*-coding:utf-8-*- array = [1,2,[3,4],5] def summation(array): total = 0 for a in array: if(type(a) == type(array)): total += summation(a) else: total += a return total print summation(array) Pythonには整数なのかリストかどうか判定する関数（type()）が あったか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20130525%2F1369446942&quot; title=&quot;再帰を実装してみる - how to code something&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-25 10:55:42</published>
  <title>再帰を実装してみる</title>
  <type>rich</type>
  <url>https://seinzumtode.hatenadiary.jp/entry/20130525/1369446942</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
