Numbers
Numbers in Python are of four types - integers, long integers, floating point and complex numbers.
• Examples of integers are2 which are just whole numbers.
• Long integers are just bigger whole numbers.
• Examples of floating point numbers (or
floats for short) are
3.23 and
52.3E-4. The
E notation indicates powers of 10. In this case,
52.3E-4 means
52.3 * 10-4.
• Examples of complex numbers are
(-5+4j) and
(2.3 - 4.6j)