こんにちは!このページでは、私のYouTube動画「Python超入門シリーズ」第1回の内容をブログでも解説しています。 まず基本ですね。下記のプログラムで何が起こっているかというと、 nameという箱にAliceという文字列が入りました。 そしてageという箱に20と ...
Pythonのprint()関数で、いくつかの変数や文字列をまとめて表示しようとしたら、全部が一列につながってしまって読みにくい…。そんな経験はありませんか?プログラムの実行結果は、人間にとって見やすく整形されていることがとても大切です。 例えば、2 ...
whatever is a dummy variable that you can replace with other variables. Be sure to indent the statements to repeat in the loop. We need to have at least one condition to implement the loop and make ...