What are the basic built-in data types of Python?
Some basic data types, such as INTEGER (number), String, tuples, lists, dictionaries, and Boolean types.
As the learning progress deepens, more and more interesting data types will be available. You can get started with these types before getting started with python.
Symbol of the basic built-in data type
1) integer -- int -- number
Python has five numeric types, the most common of which is Integer int. Example: 1234,-1234
2) Boolean -- bool -- represents with symbol =
Boolean is a special python numeric type. It has only True and False values. It is mainly used for comparison and judgment. The obtained result is a Boolean value. For example, 3 = 3 indicates True, 3 = 5 indicates False.
3) string -- str -- expressed by ''or ""
For example: 'www .iplaypython.com 'or "hello"
4) list -- represented by the [] symbol
Example: [1, 2, 3, 4]
5) The tuples -- tuple -- are represented by the () symbol.
Example: ('d, 300)
6) dictionary -- dict -- represented by the {} symbol
Example: {'name': 'coco ', 'country': 'China '}
Which of the basic Python data types are mutable and which are immutable?
Python variable data type: list [], Dictionary dict {}
Python unchangeable data type: integer int, string str '', tuple ()