- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 91字
- 2025-04-04 19:20:06
Integers and long integers
Integers include zero, all of the positive whole numbers, and all of the negative whole numbers. The interpreter first checks the expression on the right hand side of the assignment operator and then binds the value with its variable name; this process is termed as variable definition or initialization. The int or integer data type ranges from -231 to (231-1); the leading minus sign shows the negative values. Beyond these ranges, the interpreter will add L to indicate a long integer, as shown in the following screenshot:
