[Link].
in
Python Numbers
• The numeric types in Python are integers, floating-point numbers, and
complex numbers.
1. Integer (int)
• Integers are whole numbers, positive or negative, without a decimal point
of unlimited length.
2. Floating-point (float)
• Floating-point numbers have a decimal point, positive or negative and can
represent fractional values.
• Floating-point numbers can also be represented using E notation
(scientific notation), where e or E is used to denote powers of 10.
3. Complex Numbers (complex)
• Complex numbers have a real and imaginary part, represented as a + bj,
where j is the imaginary unit.
4. Type Conversion
• Python allows conversion between different numeric types.
1
[Link]
• However, Python does not allow conversion from complex numbers to
integers or floats.