Académique Documents
Professionnel Documents
Culture Documents
Table of Content
Python is very easy to use and it can be used for arithmetic operations. in this section lets
look how we can use python as a calculator. This section is described three sections.
Python Basics 01 :- Python Oprerators
Python Basics 02 :- Python Data types, Variables and other basics (This will be discussed in
next section)
An operator is a symbol that is used for calculations. In simple 3 + 5 3 and 5 are operands
and + is the operator.Python language supports following type of operators.
Arithmetic Operators
Comparision Operators
Assignment Operators
Description
Example
a + b will give 30
**
//
Here after I will not put any screen shots of the GUI. I will put only the code as follows.
>>> 2 + 3
5
>>> 3 - 1
2
>>> 2 * 5
10
Description
Example
==
(a == b) is not true.
!=
(a != b) is true.
>
<
(a < b) is true.
>=
<=
(a <= b) is true.