<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>繰り返し on プログラミング演習B</title><link>https://ksubpb.github.io/2026/tags/%E7%B9%B0%E3%82%8A%E8%BF%94%E3%81%97/</link><description>Recent content in 繰り返し on プログラミング演習B</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>© 2026</copyright><atom:link href="https://ksubpb.github.io/2026/tags/%E7%B9%B0%E3%82%8A%E8%BF%94%E3%81%97/index.xml" rel="self" type="application/rss+xml"/><item><title>Pythonの基本</title><link>https://ksubpb.github.io/2026/lesson01/grammer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/grammer/</guid><description>&lt;h2 class="relative group"&gt;基本文法&#10; &lt;div id="基本文法" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%9f%ba%e6%9c%ac%e6%96%87%e6%b3%95" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&#10;&lt;h3 class="relative group"&gt;コメント&#10; &lt;div id="コメント" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.17（Lesson 2）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;Pythonでは &lt;code&gt;#&lt;/code&gt; 以降の文字列はコメントとして扱われます。&#10;コメントはプログラムの説明やメモを書くために使います。&lt;/p&gt;</description></item><item><title>ディクショナリ</title><link>https://ksubpb.github.io/2026/lesson02/dictionary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson02/dictionary/</guid><description>&lt;h2 class="relative group"&gt;ディクショナリ&#10; &lt;div id="ディクショナリ" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%83%87%e3%82%a3%e3%82%af%e3%82%b7%e3%83%a7%e3%83%8a%e3%83%aa" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.142（Lesson 6.2）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;ディクショナリは、キーと値のペアを格納するコレクションです。&#10;他の言語では、Map や Hash、連想配列と呼ばれることがあります。&#10;ディクショナリは、リストのインデックスの代わりに、キーと呼ばれる任意の型を用いて、対応するデータを格納します。&lt;/p&gt;</description></item><item><title>リストとタプルの操作</title><link>https://ksubpb.github.io/2026/lesson01/iterator/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/iterator/</guid><description>&lt;h2 class="relative group"&gt;繰り返し、イテレータ&#10; &lt;div id="繰り返しイテレータ" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e3%82%a4%e3%83%86%e3%83%ac%e3%83%bc%e3%82%bf" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.101（Lesson 5）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;リストの要素を順に取り出す場合、&lt;code&gt;for&lt;/code&gt;文を用います。&#10;以下の文で、&lt;code&gt;リスト&lt;/code&gt;の各要素を順番に取り出し、&lt;code&gt;変数&lt;/code&gt;に代入して&lt;code&gt;処理&lt;/code&gt;を行います。&#10;このように順に処理できるような仕組みをイテラブル（iterable; 反復可能）と呼びます。&#10;ほとんどのコレクションはイテラブルであり、同じように &lt;code&gt;for&lt;/code&gt; 文で処理できます。&lt;/p&gt;</description></item></channel></rss>