0% found this document useful (0 votes)
8 views5 pages

Doaa Arithmatic and Types

The numeric data type in Python represents numeric values like integers, floating numbers, and complex numbers through classes like int, float, and complex. It describes integers as whole numbers without fractions, floats as real numbers with decimal points, and complex numbers as having real and imaginary parts.

Uploaded by

doaa.arafeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

Doaa Arithmatic and Types

The numeric data type in Python represents numeric values like integers, floating numbers, and complex numbers through classes like int, float, and complex. It describes integers as whole numbers without fractions, floats as real numbers with decimal points, and complex numbers as having real and imaginary parts.

Uploaded by

doaa.arafeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Numeric Data Type in Python

The numeric data type in Python represents the data that has a numeric value. A numeric value can be an integer,
a floating number, or even a complex number. These values are defined as Python int, Python float, and
Python complex classes in Python.

•Integers – This value is represented by int class. It contains positive or negative whole numbers (without
fractions or decimals). In Python, there is no limit to how long an integer value can be.

•Float – This value is represented by the float class. It is a real number with a floating-point representation. It is
specified by a decimal point. Optionally, the character e or E followed by a positive or negative integer may be
appended to specify scientific notation.

•Complex Numbers – Complex number is represented by a complex class. It is specified as (real part) +
(imaginary part)j. For example – 2+3j

Note – type() function is used to determine the type of data type.

You might also like