Numerical Data Types

What is an int?

An int, short for integer, is a number without a decimal part.

What is a float?

A float is a number that contains a decimal part.

What can you do with numerical data?

You can perform all basic arithmetic operations with numerical data and do higher-order operations, like working with exponenets and trigonometric functions, and finding absolute values. Python allows you to work with fractions and represent complex numbers (numbers with both imaginary and real parts).

What other kinds of numerical data types are available?

For computation-intensive work, third-party libraries, like SciPy, NumPy, and pandas, can make easier work. Many dedicated visualization libraries are also available, like Bokeh, Plotly, Matplotlib, and Pygal.