1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Python]演算子/Operators

Last updated at Posted at 2021-09-26

概要

Pythonのtutorialで学んだ事を記します。

基本的な演算子 

演算子 役割 使い方 結果
+ 加算 1 + 1 2
- 減算 2 - 1 1
* 乗算 1 * 2 2
/ 除算 4 / 2 2
% 剰余 5 % 2 1
// 切捨て除算 9 // 2 4
** べき乗 2 ** 4 16
< 順序付け a < b aはbより小
> 順序付け a > b aはbより大
<= 順序付け a <= b aはb以下
>= 順序付け a >= b aはb以上
== 等価性 a == b aはbと等い
!= 不等性 a != b aはbと等くない

他にも色々あるますが、今は基本的なところだけをピックアップしました。
他はまた追々...

1
1
2

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?