Boolean value -—bool class: Boolean value with true and false results, corresponding to binary 0 and 1 respectively.
String-—str class: String is the most commonly used data type in Python, and it has many uses. We can use single or double quotes to create strings. The character string cannot be modified. We can introduce the character string from the aspects of index, slice, length, traversal, deletion, segmentation, blank space, case switching, and judging where to start.
List-list class: consists of a series of elements arranged in a specific order. Its elements can be any number type, that is, numbers, strings, lists, tuples, dictionaries, Boolean values, etc. , and its elements can also be modified.
Tuple-Tuple class: A tuple is an immutable list, which is similar to a list in characteristics and is identified by parentheses instead of square brackets.
-—dictionary-Dict class: A dictionary is a series of key-value pairs, each separated by a comma, and each key corresponds to a value. You can access the corresponding value by using the key, which is unordered. The definition of key must be immutable, which can be numbers, strings, tuples and Boolean values.
Set-set class: it is like a basket, you can put things in it, but these things are out of order, so it is difficult to specify what to take alone; It can also filter what you need through a certain method, so you can create, add, delete and operate the relationship of the collection.