In Python it is possible to convert data types to other data types. The method int() converts a number or string to an integer.