Fundamentals of Python

Learn the commonly used data types and operators in Python.

Data types in Python

The data type is the classification or categorization of data items. It indicates the domain of values and the operations that are often performed on specific data.

Common data types

Python supports three basic data types:

  • int: Integer values (5, 0, -1, etc.)
  • float: Floating-point values (2.33333, -2500.001, 20.0, etc.)
  • str: String values (educative, python, etc.)

The following code ...