--- id: 5e9a093a74c4063ca6f7c165 title: Python 入門 challengeType: 11 videoId: PrQV9JkLhb4 bilibiliIds: aid: 805597530 bvid: BV1634y1S7gD cid: 409023550 dashedName: python-introduction --- # --description-- *動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。* その他のリソース: - [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes) - [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb) # --question-- ## --text-- Python の関数の本体でコードブロックを定義するにはどうすればよいですか? ## --answers-- 新しいコードブロックごとに、それぞれの両端で中括弧を使用する。 --- インデントを使用する (通常は右揃えの 4 つのスペース)。 --- コードブロックを明記しない。 --- 中括弧やインデントを使用してコードブロックを明記することができる。 ## --video-solution-- 2