Introduction to Numbers
This section reads as follows:
- Introduction to Numbers
- The composition of the Python program
- Objects in Python
- Python's numeric type view original
Introduction to Numbers
Numbers indicate the number or amount of integers, such as age, floating-point numbers (decimals), for example, price, negative numbers, and so on. Numbers can perform some addition, subtraction, multiplication, and other operations, and there are built-in functions to operate, such as: take maximum, minimum, absolute value, and so on.
The composition of the Python program
- Package and its child packages
- Package contains modules
- Inside the module contains statements
- Statement contains an expression
- expression creation and processing of an object
Objects in Python
All types in Python are objects, Python's built-in objects:
- Digital
- String
- List
- Dictionary
- Meta-group
- File
- Collection
- Other types (Type, None, Boolean)
- Programming units (functions, modules, classes)
Once an object is created, it is bound to a specific set of operations, for example: numbers can be subtraction and so on
Number types for Python:
- Integers and floating-point numbers
- Plural
- Decimal number for fixed precision
- Rational Fractions
- Boolean type
- Infinite integer Precision
- Various digital built-in functions and modules
Introduction to Python numbers