Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to define int types in python
How to define int types in python
Standard data type

There are six standard data types in Python3:

Number (number)

String (string)

List (list)

Tuple (tuple)

Set (set)

Dictionary (dictionary)

Among the six standard data types in Python3:

Immutable data (3 blocks): Number (NUMBER), String (string), tuple (tuple);

Variable data (3): List, Dictionary and Set.

Python int has many types of numbers: integer int, long integer, Boolean bool, floating point number float and complex number. You just need to know integer in advance during the basic learning of Python.

Boolean will do.

Creation and declaration of integer int

Creating a new integer variable is equivalent to assigning value to a variable.

A = 123 or b =-123 equals the variable name on the left and the assignment on the right. It's that simple.

Characteristics of integers

Since it is a natural assignment of integers, the data should be integers, and integers are simply understood as (positive integers and negative integers).

Python learning network, many free learning resources, welcome to learn!