<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>第01講 プログラミングAの復習，基本データ型（1/2; リスト，タプル） on プログラミング演習B</title>
    <link>https://ksupbpb.github.io/2025/lesson01/</link>
    <description>Recent content in 第01講 プログラミングAの復習，基本データ型（1/2; リスト，タプル） on プログラミング演習B</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    <copyright>© 2026 </copyright>
    <lastBuildDate>Thu, 18 Sep 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ksupbpb.github.io/2025/lesson01/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Pythonの基本</title>
      <link>https://ksupbpb.github.io/2025/lesson01/grammer/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/grammer/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;基本文法 
    &lt;div id=&#34;基本文法&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%9f%ba%e6%9c%ac%e6%96%87%e6%b3%95&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;h3 class=&#34;relative group&#34;&gt;コメント 
    &lt;div id=&#34;コメント&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;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&#34;&gt;
    教科書 p.17（Lesson 2）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;Pythonでは &lt;code&gt;#&lt;/code&gt; 以降の文字列はコメントとして扱われます．
コメントはプログラムの説明やメモを書くために使います．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>ファイルの読み書き</title>
      <link>https://ksupbpb.github.io/2025/lesson01/file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/file/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;ファイルを開く 
    &lt;div id=&#34;ファイルを開く&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e9%96%8b%e3%81%8f&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;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&#34;&gt;
    教科書 p.286（Lesson 10）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;Python でファイルを読み書きするには，&lt;code&gt;open&lt;/code&gt; 関数を使います．
&lt;code&gt;open&lt;/code&gt;関数の第1引数が対象のファイル名，第２引数がオープンモードです．
オープンモードは教科書 p.288 表10-1 に記載されていますが，以下の3種類を区別できれば良いでしょう．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>リストとタプル</title>
      <link>https://ksupbpb.github.io/2025/lesson01/list_and_tuple/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/list_and_tuple/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;リスト（配列） 
    &lt;div id=&#34;リスト配列&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e3%83%aa%e3%82%b9%e3%83%88%e9%85%8d%e5%88%97&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;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&#34;&gt;
    教科書 p.94（Lesson 5）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;プログラムを書く上で，複数のデータをまとめて扱うことがよくあります．
このような場合，コレクションと呼ばれるデータ構造を用います．
コレクションには，リスト，セット，ディクショナリなどのデータ構造がありますが，ここではリストについて説明します．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>リストとタプルの操作</title>
      <link>https://ksupbpb.github.io/2025/lesson01/iterator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/iterator/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;繰り返し，イテレータ 
    &lt;div id=&#34;繰り返しイテレータ&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%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&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;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&#34;&gt;
    教科書 p.101（Lesson 5）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;リストの要素を順に取り出す場合，&lt;code&gt;for&lt;/code&gt;文を用います．
以下の文で，&lt;code&gt;リスト&lt;/code&gt;の各要素を順番に取り出し，&lt;code&gt;変数&lt;/code&gt;に代入して&lt;code&gt;処理&lt;/code&gt;を行います．
このように順に処理できるような仕組みをイテラブル（iterable; 反復可能）と呼びます．
ほとんどのコレクションはイテラブルであり，同じように &lt;code&gt;for&lt;/code&gt; 文で処理できます．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>コマンドライン引数</title>
      <link>https://ksupbpb.github.io/2025/lesson01/sys.argv/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/sys.argv/</guid>
      <description>&lt;h3 class=&#34;relative group&#34;&gt;コマンドライン引数 
    &lt;div id=&#34;コマンドライン引数&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%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&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;p&gt;スクリプトモードでPythonのコードを実行する際に，コマンドライン引数を受け取ることができます．
コマンドライン引数とは，Pythonスクリプトを実行するときにスクリプトの後ろに指定する引数のことです．
例えば，&lt;code&gt;python3 script.py arg1 arg2&lt;/code&gt; のようにスクリプト名の後にスペース区切りで指定します．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>第01講 週次課題</title>
      <link>https://ksupbpb.github.io/2025/lesson01/assignments/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/assignments/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;課題01-1 Big&amp;amp;Small 
    &lt;div id=&#34;課題01-1-bigsmall&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e8%aa%b2%e9%a1%8c01-1-bigsmall&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;div class=&#34;flex mt-2&#34;&gt;
  &lt;span
    class=&#34;rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal&#34;&gt;
    &lt;span class=&#34;flex flex-row items-center&#34;&gt;
      
        &lt;span class=&#34;mr-1&#34;&gt;&lt;span class=&#34;relative block icon&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 384 512&#34;&gt;&lt;path fill=&#34;currentColor&#34; d=&#34;M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z&#34;/&gt;&lt;/svg&gt;
&lt;/span&gt;&lt;/span&gt;
      
      &lt;span&gt;難易度 :star:&lt;/span&gt;
    &lt;/span&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;p&gt;1以上，10以下の整数乱数を取得し，その値が5以上なら Big，5未満なら Small と出力するプログラムを作成してください．
プログラムは &lt;code&gt;big_small.py&lt;/code&gt; というファイル名で保存してください．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>まとめ</title>
      <link>https://ksupbpb.github.io/2025/lesson01/summary/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/summary/</guid>
      <description>まとめ（基本文法（コメント，型，変数，条件分岐，繰り返し）ファイルの読み書き，ヒストグラム）</description>
      
    </item>
    
  </channel>
</rss>
