What are the numeric types in Python?

anonymity
Release: 2019-06-14 09:51:05
Original
10439 people have browsed it

Variables in Python do not need to be declared. Each variable must be assigned a value before use. The variable will not be created until the variable is assigned a value.

In Python, a variable is a variable, it has no type. What we call "type" is the type of the object in memory pointed by the variable.

The equal sign (=) is used to assign values ​​to variables.

The left side of the equal sign (=) operator is a variable name, and the right side of the equal sign (=) operator is the value stored in the variable.

What are the numeric types in Python?

Python3 has 6 most commonly used data types, which are:

Numbers (numbers)

String(String)

List(List)

Tuple(Tuple)

Sets (set)

Dictionaries (dictionary)

Among the six standard data types of Python3:

Immutable Data (3): Number, String, Tuple;

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

The above is the detailed content of What are the numeric types in Python?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!