Python Numbers

In this tutorial you will learn about the Python Numbers and its application with practical example.

Python Numbers

The Number data type is used to hold the numeric values. Python supports following numerical data types –

Type Format Description
int a = 10 Signed Integer
long a = 345L (L) Long integers, they can also be represented in octal and hexadecimal
float a = 45.67 (.) Floating point real values
complex a = 3.14J (J) Contains integer in the range 0 to 255.
In this tutorial we have learn about the Python Numbers and its application with practical example. I hope you will like this tutorial.