<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>muchance</author_name>
  <author_url>https://blog.hatena.ne.jp/muchance/</author_url>
  <blog_title>mu chance or much chance ?</blog_title>
  <blog_url>https://blog.muchance.jp/</blog_url>
  <categories>
    <anon>nlp100</anon>
  </categories>
  <description>問題 02. 「パトカー」＋「タクシー」＝「パタトクカシーー」 「パトカー」＋「タクシー」の文字を先頭から交互に連結して文字列「パタトクカシーー」を得よ． 解答例 str1 = 'パトカー' str2 = 'タクシー' ans =[] for (i, j) in zip(str1, str2): ans += (i + j) print(''.join(ans)) コメント 「zip」，「リストに追加」，「join」の使い方を学びました． zipを使うことで，複数のリストを一気に操作が可能になります． zipの例 list1 = ['a', 'b', 'c'] list2 = ['e', 'd…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.muchance.jp%2Fentry%2F2017%2F04%2F04%2F233000&quot; title=&quot;言語処理100本ノック 2015 02 - mu chance or much chance ?&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>2017-04-04 23:30:00</published>
  <title>言語処理100本ノック 2015 02</title>
  <type>rich</type>
  <url>https://blog.muchance.jp/entry/2017/04/04/233000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
