What are the basic built-in data types for Python
Some basic data types, such as Integer (number), string, tuple, list, dictionary, and Boolean types.
As learning progresses, you will also be exposed to more and more interesting data types, as Python beginners get to know these types first.
Basic built-in data type correspondence symbol
1) integral type--int--digit
Python has 5 numeric types, the most common being integer int. Example: 1234,-1234
2) Boolean--bool--notation = =
Boolean is a special type of Python number, it is only true and false two kinds of values, it is mainly used to compare and judge, the result is called a Boolean value. For example: 3==3 gives true,3==5 gives false
3) string--str--with "' or" "
For example: ' www.iplaypython.com ' or ' hello '
4) List--list--with [] notation
Example: [1,2,3,4]
5) tuple--tuple--with () notation
For example: (' d ', 300)
6) Dictionary--dict--in {} notation
For example: {' name ': ' Coco ', ' country ': ' China '}
What is mutable in the Python base data type and which is immutable
Python variable data type: List list[], dictionary dict{}
Python immutable data type: int, string str ', tuple tuple ()