0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

初めてのプログラミング - Python

Posted at

本記事の目的

私は普段AWSを主に触るクラウドインフラエンジニアです。
開発の基本知識を得るために、Pythonを勉強してみます。
自分のメモとして本記事を執筆します。
プログラミング(Python)の基礎が知りたいけど勉強の時間がない!という方のご参考にもなれば嬉しいです。

数値・文字列を表示させる

image.png

計算する

image.png

変数

pen = 87 の pen変数
image.png

変数は""(ダブルクォーテーション)で囲む必要なし!

変数に別の値を代入したとき
※例)100
image.png

変数を使って計算する①

image.png

変数を使って計算する②

image.png

if文

image.png

・if文の行末に :(コロン)
・if文次行の頭に インデント(4つの半角スペース)
 をつける!
インデントがついている行の塊をブロックと呼ぶ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?