<?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/%E3%82%BF%E3%83%97%E3%83%AB/</link><description>Recent content in タプル on プログラミング演習B</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>© 2026</copyright><lastBuildDate>Wed, 30 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ksubpb.github.io/2026/tags/%E3%82%BF%E3%83%97%E3%83%AB/index.xml" rel="self" type="application/rss+xml"/><item><title>第01講 プログラミングAの復習、基本データ型（1/2; リスト、タプル）</title><link>https://ksubpb.github.io/2026/lesson01/</link><pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/</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="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第01講では、プログラミングAで学んだ内容を復習します。&#10;具体的には、Pythonの基本文法、ファイルの読み書き、リストとタプルについて復習します。&#10;加えて、&lt;a href="https://ksubpb.github.io/2026/lesson01/sys.argv/#%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e5%bc%95%e6%95%b0" &gt;コマンドライン引数&lt;/a&gt;についても学びます。&lt;/p&gt;</description></item><item><title>リストとタプル</title><link>https://ksubpb.github.io/2026/lesson01/list_and_tuple/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/list_and_tuple/</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%aa%e3%82%b9%e3%83%88%e9%85%8d%e5%88%97" 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.94（Lesson 5）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;プログラムを書く上で、複数のデータをまとめて扱うことがよくあります。&#10;このような場合、コレクションと呼ばれるデータ構造を用います。&#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><item><title>まとめ</title><link>https://ksubpb.github.io/2026/lesson01/summary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/summary/</guid><description>まとめ（基本文法（コメント、型、変数、条件分岐、繰り返し）ファイルの読み書き）</description></item></channel></rss>