Home >Backend Development >Python Tutorial >What does int mean in python?

What does int mean in python?

藏色散人
藏色散人Original
2019-10-17 10:57:285380browse

What does int mean in python?

What does int mean in python?

int is a class in python. It is one of the immutable data types. Some of its properties are the same as strings, and it is an integer type.

● Python int number type: int, long, bool, float, complex.

● Creation of integer type int: Creating a new integer type variable and assigning a value to the variable are the same process.

● Characteristics of the integer type: Since it is an integer type, the data during natural assignment must be an integer. Integers are simply understood as (positive integers and negative integers).

● Operation operators and methods between integer variables: The operators before integer data type variables that python can currently support include addition (+), subtraction (-), multiplication (*), and division ( /) and power (**).

Recommended: "Python Tutorial"

Introduction to Python:

Python is purely free software, source code and explanation The CPython tool follows the GPL (GNU General Public License) protocol. Python syntax is concise and clear. One of its features is the forced use of white space as statement indentation.

The above is the detailed content of What does int mean in python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn