![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ノンプロ研初心者向けプログラミング講座第8期【Python コース】第2回
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ブール値以外の型の判定。 データ型によって異なる。 if x == 0: としなくても、if x: と記述できる。 #ノンプロ研 #Python講座
2022-04-11 20:49:40![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
while文 #ノンプロ研 #Python講座 while 条件式: 処理 処理がTrueの間、処理を繰り返す。 処理はインデントする(大切)
2022-04-11 20:51:24![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
end='\t' endオプションは末尾に出力する文字を指定する デフォルトは、\n #ノンプロ研 #Python講座
2022-04-11 20:53:44![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
みんな大好き無限ループ #ノンプロ研 #Python講座 ■ボタンで止めましょう! pic.twitter.com/vBKyE1GjTw
2022-04-11 20:56:36![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
while文などで無限ループを書いてしまった時は Jupyter Notebookの上の■(interrupt the kernel)でストップする。 無限ループのときは [*] となっている #ノンプロ研 #Python講座
2022-04-11 20:57:15![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
スタート・ストップ・ステップ #ノンプロ研 #Python講座 省略したりできるので注意が必要 その上、stopは未満になるので注意!!!! pic.twitter.com/MGvDZoIaZT
2022-04-11 21:04:24![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
range関数 : 整数のシーケンスを生成する。 range([start,] stop [, step]) stopの引数は必須です。 #ノンプロ研 #Python講座
2022-04-11 21:05:30![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
イテラブル! #ノンプロ研 #Python講座 エラーにでてきてがっかりするイメージ。 あくまでも、私の場合・・・しかもGAS・・・
2022-04-11 21:05:46![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
イテラブル = 反復可能 繰り返し可能なオブジェクト。 次の要素を取り出すルールが決まっているときに利用できる。 range関数で呼び出される整数もイテラブル。 #ノンプロ研 #Python講座
2022-04-11 21:06:26![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
イテラブル・・・要素を取り出すルールが決まっているデータ集合オブジェクト 分かるようで分からない。分かる気もするが、多分忘れるぞこれ #ノンプロ研 #Python講座
2022-04-11 21:07:49![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
rangeではなくて、イテラブルのイメージなんですね✨ 順番に取り出しながら処理をする #ノンプロ研 #Python講座 pic.twitter.com/GAalWMkGMN
2022-04-11 21:07:50![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)