--Originally published at Welcome to the Heaven
Okay, the basic data types in python 3 divides in 4:
- Boolean
- Numeric
- Sequences
- Mapping
The first one, Boolean is useful in conditional expressions and we used to the built-in values True and False.
The second, Numeric divides in 3:
The third, Sequences divides in 3:
- str = String; sequence of Unicode characters
- byte: a sequence of integers in the range of 0-255
- byte array: like bytes, but mutable
- list = Can be mutable
- tuple = Is immutable(need less space)
And the Fourth:
- dict = Python dictionaries
This Basic Data Types is only for Python 3, not Python 2
If you want to read more about this you can visit:
–https://docs.python.org/3/library/stdtypes.html
–https://en.wikibooks.org/wiki/Python_Programming/Data_Types
Picture:http://img.c4learn.com/2012/03/Boolean-data-type-in-java-programming.jpg