以下の通り実行できます。
準備
git clone http://github.com/seigot/tetris_game_tutorial # tutorialディレクトリをclone
cd tetris_game_tutorial/tutorial # tutorialディレクトリへ移動
tutorial用プログラム実行
python3 tutorial1.py # print
python3 tutorial2.py # 演算子(*,/,+.-)
python3 tutorial3.py # 加算代入演算子(+=)、減算代入演算子(-=)
python3 tutorial4.py # max,min,sum
python3 tutorial5.py # 論理演算子(and, or)
python3 tutorial6.py # 括弧 ()
python3 tutorial7.py # if文
python3 tutorial8.py # 比較演算子
python3 tutorial9.py # list型
python3 tutorial10.py # 辞書型
python3 tutorial11.py # tuple型
python3 tutorial12.py # len
python3 tutorial13.py # for x in [1,2,3,4]:
python3 tutorial14.py # for x0 in for range(2,8)
python3 tutorial15.py # continue
python3 tutorial16.py # 3種類のrange,(range(1,3),range(height - 1, 0, -1):,range(width),)
python3 tutorial17.py # while
python3 tutorial18.py # 関数
python3 tutorial19.py # ライブラリ
python3 tutorial20.py # class
python3 tutorial21.py # おまけ:PythonでFizz Buzz書いてみた
プログラム詳細は、エディタでxxx.pyファイルを開いてみてください。