int is a class. The type of a class is usually type.

And yes, almost all classes can be called like functions. You create what's called an instance which is an object that behaves as you defined in the class. They can have their own functions and have special attributes.

(type is also a class if you're interested but it's a special class. It's a bit complicated but you can read more on it if you'll search for metaclasses)

Reference: Python documentation for the int class

Answer from Bharel on Stack Overflow
🌐
Python
docs.python.org › 3 › builtins › stdtypes.html
Built-in Types — Python 3.14.7 documentation
For ease of implementation and efficiency across a variety of numeric types (including int, float, decimal.Decimal and fractions.Fraction) Python’s hash for numeric types is based on a single mathematical function that’s defined for any rational number, and hence applies to all instances of int and fractions.Fraction, and all finite instances of float and decimal.Decimal.
🌐
W3Schools
w3schools.com › python › python_numbers.asp
Python Numbers
Note: You cannot convert complex numbers into another number type. Python does not have a random() function to make a random number, but Python has a built-in module called random that can be used to make random numbers:
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-data-types
Python Data Types - GeeksforGeeks
In, Python Numeric data types are used to store numeric values. It can be an integer, floating number or even a complex number.
Published: 1 week ago
🌐
Data Science Discovery
discovery.cs.illinois.edu › guides › Python-Fundamentals › Python-data-types
Python Data Types - Data Science Discovery
Python is a dynamically typed language, meaning you don't need to declare the type of a variable explicitly. Here's a summary of some commonly used data types in Python: Integer (int): Whole numbers without any decimal point, e.g., 5, -10, 100.
🌐
Mimo
mimo.org › glossary › python › integer
Python Integer: Master Numeric Data Types
Integer, or int, is a data type in Python that represents whole numbers without a decimal point.
Find elsewhere
🌐
Real Python
realpython.com › ref › builtin-types › int
int | Python’s Built-in Data Types – Real Python
The built-in int data type represents integer numbers, which are whole numbers without any decimal places. Integers can be positive, negative, or zero.
🌐
Medium
medium.com › @tuenguyends › pythons-integer-int-type-b671705e8339
Python’s integer (int) type | by Tue Nguyen | Medium
April 15, 2022 - Python’s integer (int) type Python uses int to represent integers (or whole numbers) such as 10, 100, or -30. Create an integer We can create an int variable through an assignment with an integer …
🌐
Python Data Science Handbook
jakevdp.github.io › PythonDataScienceHandbook › 02.01-understanding-data-types.html
Understanding Data Types in Python | Python Data Science Handbook
It's actually a pointer to a compound C structure, which contains several values. Looking through the Python 3.4 source code, we find that the integer (long) type definition effectively looks like this (once the C macros are expanded):
🌐
Python
docs.python.org › 3 › builtins › functions.html
Built-in Functions — Python 3.14.7 documentation
Return a Boolean value, i.e. one of True or False. The argument is converted using the standard truth testing procedure. If the argument is false or omitted, this returns False; otherwise, it returns True. The bool class is a subclass of int (see Numeric Types — int, float, complex).
🌐
Readthedocs
mypyc.readthedocs.io › en › latest › int_operations.html
Native integer operations - mypyc 2.4.0+dev.8b3e7d8b9f63543374e53d1c389ea443dd65bc46 documentation
i64, i32, i16 and u8 are native integer types and are available in the mypy_extensions module. int corresponds to the Python int type, but uses a more efficient runtime representation (tagged pointer).
🌐
Real Python
realpython.com › python-data-types
Basic Data Types in Python: A Quick Exploration – Real Python
May 22, 2026 - You use basic data types like int, float, and complex for numbers, str for text, bytes and bytearray for binary data, and bool for Boolean values. These data types form the core of most Python programs, allowing you to handle numeric, textual, and logical data efficiently.
🌐
Reddit
reddit.com › r/learnpython › when python returns what does 'class' exacltly mean ?
r/learnpython on Reddit: when python returns <class 'int'> what does 'class' exacltly mean ?
August 29, 2025 -

hey everyone ! i'm trying to grasp some python fundemantls and i still find the term "class" confusing in <class 'int'> , 'int' is a class name that follows the same rule as my defined classes in python but 'int' is not defined using python .

i asked chatgbt and it says : 'int' is defined/implemented in C , but how do my classes that are defined in python behave the same way as the built_in ones ?

🌐
Scribd
scribd.com › document › 955819942 › Int
Python int Class Overview and Methods | PDF | Integer (Computer Science) | Boolean Data Type
Int - Free download as PDF File (.pdf), Text File (.txt) or read online for free. The document provides detailed information about the 'int' class in Python, including its methods, constructors, and usage examples. It explains how to convert numbers or strings to integers, the valid bases for conversion, and lists various methods available for integer operations.
🌐
Medium
medium.com › analytics-vidhya › all-about-python-integers-int-4cec6bcf4d21
All about Python Integers(int). In Python programming language… | by Keerti Prajapati | Analytics Vidhya | Medium
January 24, 2021 - Returns tuple, where first element is result of division of given two integer and second element is mod of integers.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-numbers
Python Numbers - GeeksforGeeks
May 27, 2026 - Numbers are used to store numeric ... numbers, decimal values and complex numbers. ... An integer (int) represents whole numbers without decimal values....