Hướng dẫn arithmetic operators in python 3 - toán tử số học trong python 3


Giả sử biến A giữ giá trị 10 và biến B giữ giá trị 20, sau đó -a holds the value 10 and variable b holds the value 20, then −

Nhà điều hànhSự mô tảThí dụ
+ Ngoài raThêm các giá trị ở hai bên của toán tử.A + B = 31
- Phép trừTrừ toán hạng tay phải từ toán hạng bên trái.A -B = -11
* Phép nhânNhân các giá trị ở hai bên của toán tửA * B = 210
/ Phân côngChia toán hạng tay trái cho toán hạng bên phảib / a = 2.1
% Mô đunChia toán hạng tay trái cho toán hạng bên phải và trả về phần còn lạib % a = 1
** Số mũThực hiện tính toán theo cấp số nhân (nguồn) trên các toán tửA ** b = 10 đến sức mạnh 20
//Phân chia sàn - phân chia các toán hạng trong đó kết quả là thương số trong đó các chữ số sau khi điểm thập phân được loại bỏ. Nhưng nếu một trong các toán hạng là âm, kết quả được đưa ra, tức là, làm tròn từ số không (về phía vô cực âm):9 // 2 = 4 và 9.0 // 2.0 = 4.0, -11 // 3 = -4, -11.0 // 3 = -4.0

Thí dụ

Giả sử biến A giữ giá trị 10 và biến B giữ giá trị 20, sau đó -a holds the value 10 and variable b holds the value 20, then −

#!/usr/bin/python3

a = 21
b = 10
c = 0

c = a + b
print ("Line 1 - Value of c is ", c)

c = a - b
print ("Line 2 - Value of c is ", c )

c = a * b
print ("Line 3 - Value of c is ", c)

c = a / b
print ("Line 4 - Value of c is ", c )

c = a % b
print ("Line 5 - Value of c is ", c)

a = 2
b = 3
c = a**b 
print ("Line 6 - Value of c is ", c)

a = 10
b = 5
c = a//b 
print ("Line 7 - Value of c is ", c)

+ Ngoài ra

Thêm các giá trị ở hai bên của toán tử.

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2

python_basic_operators.htm

4 loại toán tử số học là gì?

Các toán tử này là + (bổ sung), - (phép trừ), * (phép nhân), / (chia) và % (modulo).

Type 5 toán tử số học là gì?Các toán tử số học thực hiện các hoạt động bổ sung, trừ, nhân, chia, số mũ và mô đun.Python3 cung cấp các loại dữ liệu của chúng tôi như số nguyên và nổi cùng với các toán tử khác nhau để thực hiện các tính toán toán học để vẽ đồ thị, thuật toán học máy, thống kê, mục đích phân tích dữ liệu. Toán tử là một biểu tượng thực hiện các hoạt động cụ thể, rất hữu ích nếu người ta thường xuyên xử lý các số. Tiết kiệm tiền đề chỉ định thứ tự các toán tử được đánh giá khi hai hoặc nhiều toán tử có ưu tiên khác nhau liền kề trong một biểu thức. & nbsp; bên dưới là một bảng tham chiếu nhanh cho các toán tử và toán tử số học đơn.Người vận hành trong Python
Nhà điều hànhTênThí dụSự mô tả& NBSP; Nhà điều hành tiết niệu
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; +Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; & nbsp; -TênThí dụSự mô tả& NBSP; Nhà điều hành tiết niệu
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số

& nbsp;

& nbsp; & nbsp; +

& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số& nbsp;
& nbsp; & nbsp; & nbsp; -Dấu trừ& nbsp; & nbsp; - xPhủ nhận đối số số

& nbsp;

& nbsp; & nbsp; +

Thêm

5 toán tử số học là gì?Các toán tử số học thực hiện các hoạt động bổ sung, trừ, nhân, chia, số mũ và mô đun.Python3 cung cấp các loại dữ liệu của chúng tôi như số nguyên và nổi cùng với các toán tử khác nhau để thực hiện các tính toán toán học để vẽ đồ thị, thuật toán học máy, thống kê, mục đích phân tích dữ liệu. Toán tử là một biểu tượng thực hiện các hoạt động cụ thể, rất hữu ích nếu người ta thường xuyên xử lý các số. Tiết kiệm tiền đề chỉ định thứ tự các toán tử được đánh giá khi hai hoặc nhiều toán tử có ưu tiên khác nhau liền kề trong một biểu thức. & nbsp; bên dưới là một bảng tham chiếu nhanh cho các toán tử và toán tử số học đơn.
Người vận hành trong PythonNhà điều hànhTên
Thí dụSự mô tả& NBSP; Nhà điều hành tiết niệu
& nbsp; & nbsp; & nbsp; -Dấu trừ& NBSP; Nhà điều hành tiết niệu
& nbsp; & nbsp; & nbsp; -Dấu trừ& NBSP; Nhà điều hành tiết niệu
& nbsp; & nbsp; & nbsp; -Dấu trừ& NBSP; Nhà điều hành tiết niệu

& nbsp; & nbsp; & nbsp; - Unary Operators.

Python3

Dấu trừ

& nbsp; & nbsp; - x

Phủ nhận đối số số

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
3
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
4

& nbsp;

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
4

& nbsp; & nbsp; +

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
9
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
4

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222474724

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0____11
Multiplication value 1: -20
Multiplication value 2: 20.08
1

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Multiplication value 1: -20
Multiplication value 2: 20.08
1

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Multiplication value 1: -20
Multiplication value 2: 20.08
8

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Division value 1: -4.0
Division value 2: 3.9840637450199208
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
4

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Division value 1: -4.0
Division value 2: 3.9840637450199208
5

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Division value 1: -4.0
Division value 2: 3.9840637450199208
8
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
4

Output: 

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1

Ví dụ 2: & nbsp; toán tử bổ sung. Addition Operator.

Python3

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0____11
Floor Division value 1: -4
Floor Division value 2: 3.0
2

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Floor Division value 1: -4
Floor Division value 2: 3.0
6

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Exponent value 1: 125
Exponent value 2: 0.008
4
Exponent value 1: 125
Exponent value 2: 0.008
5

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1____9090993____909072

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0222

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
14

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
222____123
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
25

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
28
Exponent value 1: 125
Exponent value 2: 0.008
5

Output: 

Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]

Ví dụ 3: & nbsp; toán tử trừ. Subtraction Operator.

Python3

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0____11
Floor Division value 1: -4
Floor Division value 2: 3.0
2

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Floor Division value 1: -4
Floor Division value 2: 3.0
6

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
44
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
45

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1____9090993____909072

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0222

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
66
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
67

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
14

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121

Output: 

Subtraction value 1: 9
Subtraction values:
0
2
2

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
222____123
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
25
 Multiplication Operator.

Python3

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0____11
Floor Division value 1: -4
Floor Division value 2: 3.0
2

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Floor Division value 1: -4
Floor Division value 2: 3.0
6

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1____9090993____909072

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
97
Exponent value 1: 125
Exponent value 2: 0.008
5

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0222

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
14

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121

Multiplication value 1: -20
Multiplication value 2: 20.08

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
222____123
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
25
 Division Operator.

Python3

Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Floor Division value 1: -4
Floor Division value 2: 3.0
6

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1____9090993____909072

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
25
Exponent value 1: 125
Exponent value 2: 0.008
5

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0222

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
34
Exponent value 1: 125
Exponent value 2: 0.008
5

Output:

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
14

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121
 Floor Division Operator.

Python3

Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Floor Division value 1: -4
Floor Division value 2: 3.0
6

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1____9090993____909072

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
54
Exponent value 1: 125
Exponent value 2: 0.008
5

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0222

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
64
Exponent value 1: 125
Exponent value 2: 0.008
5

Output:

Floor Division value 1: -4
Floor Division value 2: 3.0

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
14
 Exponential Operator.

Python3

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
222____123
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
5
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
25

Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]

Ví dụ 3: & nbsp; toán tử trừ.

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
84
Exponent value 1: 125
Exponent value 2: 0.008
5

Floor Division value 1: -4
Floor Division value 2: 3.0
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
0
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
5
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
8

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
94
Exponent value 1: 125
Exponent value 2: 0.008
5

Output:

Exponent value 1: 125
Exponent value 2: 0.008

____10

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
48
Exponent value 1: 125
Exponent value 2: 0.008
9
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
50
Floor Division value 1: -4
Floor Division value 2: 3.0
2
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
50
Floor Division value 1: -4
Floor Division value 2: 3.0
6
Modulus value 1: 2
Modulus value 2: 3
8
 Modulo Operator.

Python3

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
3
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Exponent value 1: 125
Exponent value 2: 0.008
8
Exponent value 1: 125
Exponent value 2: 0.008
9
Modulus value 1: 2
Modulus value 2: 3
0
Multiplication value 1: -20
Multiplication value 2: 20.08
1
Modulus value 1: 2
Modulus value 2: 3
0
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
Modulus value 1: 2
Modulus value 2: 3
8

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
69
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120174

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
75
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
777____15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
79

Ví dụ 4: & nbsp; toán tử nhân.

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
12
Exponent value 1: 125
Exponent value 2: 0.008
5

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
7
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
1
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
89

Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
1
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2
Addition value 1: -1
Addition value 2: [7, 9, 11, 13, 15]
21
Exponent value 1: 125
Exponent value 2: 0.008
5

Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
15
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
16
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
17
Line 1 - Value of c is  31
Line 2 - Value of c is  11
Line 3 - Value of c is  210
Line 4 - Value of c is  2
Line 5 - Value of c is  1
Line 6 - Value of c is  8
Line 7 - Value of c is  2
18
Minus operator value 1: -2.202
Minus operator value 2: 2.202
Plus operator value 1: 2.202
Plus operator value 2: -2.202
Invert operator value 1: -3
Invert operator value 2: 1
2222120120121

Modulus value 1: 2
Modulus value 2: 3


Các toán tử số học trong Python là gì?

Có 7 toán tử số học trong Python:..
Addition..
Subtraction..
Multiplication..
Division..
Modulus..
Exponentiation..
Phân chia sàn ..

3 toán tử trong Python là gì?

Python chia các toán tử trong các nhóm sau: toán tử số học.Toán tử chuyển nhượng.Toán tử so sánh.Arithmetic operators. Assignment operators. Comparison operators.

4 loại toán tử số học là gì?

Các toán tử này là + (bổ sung), - (phép trừ), * (phép nhân), / (chia) và % (modulo).+ (addition), - (subtraction), * (multiplication), / (division), and % (modulo).

5 toán tử số học là gì?

Các toán tử số học thực hiện các hoạt động bổ sung, trừ, nhân, chia, số mũ và mô đun.addition, subtraction, multiplication, division, exponentiation, and modulus operations.