len()は、listやtupleなどのシーケンス、dictなどのコレクション、の長さ(要素数)を返す組み込み関数。
とほほのPython入門 - リスト・タプル・辞書 - とほほのWWW入門
2. 組み込み関数 — Python 2.7.18 ドキュメント
len.pyで、
こう書くと、
![要素数が取得できる。](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20230717/20230717083705.png)
要素数が取得できる。
Sample/python/len/len/src/len at master · bg1bgst333/Sample · GitHub
len()は、listやtupleなどのシーケンス、dictなどのコレクション、の長さ(要素数)を返す組み込み関数。
とほほのPython入門 - リスト・タプル・辞書 - とほほのWWW入門
2. 組み込み関数 — Python 2.7.18 ドキュメント
len.pyで、
こう書くと、
要素数が取得できる。
Sample/python/len/len/src/len at master · bg1bgst333/Sample · GitHub