Python Core Data Types
It refers to Python's built in Object Types, it comes with python installation.
These are listed as below:
- Numbers --> (integer, float, complex numbers, rational fractions with Numerator and Denominator)
- Strings
- List
- Dictionaries
- Tuples
- Files
- Sets
- Other Core Types (Eg. Boolean, Types, None)
- Program Unit Types (Eg. Funcitons, Classses, modules)
- Implementation Related Types (Eg. Compiled Code, Stack Tracebacks)
The above listed Object types would be covered subsequently.
Reasons why we should use Python Built-In types :
- Built-in objects make programs easy to write. --- you can use them immediately. You can get a lot of work done with Python’s builtin object types alone.
- Built-in objects are components of extensions.
- Built-in objects are often more efficient than custom data structures.