Python Numbers
In Every language The Frist Step We Want To Learn Is The Number System Of The Languages, In that Way In This Python Tutorial, We Learn Python Numbers System
Let's Start!
Mainly In Python, There are three Types Of Numbers In Python, They Are,
- INT
- FLOAT
- COMPLEX
INT
INT or Integer, includes whole numbers, positive or negative numbers without a decimal point.
Eg;
x=10
x=123456789
int x=12345
In python, the major advantage is no need to declare data type and by programmer wish python also allows to declare data type.
FLOAT
FLOAT or "floating-point number" includes positive or negative numbers with a decimal point
Eg;
x=12.34
x=12.452738
COMPLEX
Generally, the complex data type is a number with an imaginary part.
In Python Complex numbers systems are written with a "j" as the imaging part.
In python, the complex data type is the rarest data type because it does not require for all-cause.
Eg;
x=3+5j
0 Comments