Python's basic built-in data types are:
Basic data types, such as Integer (number), string, tuple, list, dictionary, and Boolean types.
1) integral type--int--digit
Python has 5 types of numbers, the most common being the integral type Int,int Python method is very useful. 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: ' Python ' 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 ': ' Cco ', ' paw ': ' Iion '}
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 ()
Python basic built-in data type