Data Types Example
15 Types of Data Types
1. Text Type
- String (
str)
2. Numeric Type
- Integer (
int), Float (float), Complex (complex)
3. Sequence Type
- List (
list), Tuple (tuple), Range (range)
4. Mapping Type
- Dictionary (
dict)
5. Set Type
- Set (
set), Frozen Set (frozenset)
6. Boolean Type
- Boolean (
bool)
7. Binary Type
- Bytes (
bytes), ByteArray (bytearray), MemoryView (memoryview)
8. None Type
- None (
None)
Examples
String Data Type
1 2 3 4 5 | |
Numeric Data Type
Integer
1 2 3 4 5 | |
Float
1 2 3 4 5 | |
Sequence Data Type
List
1 2 3 4 5 | |
Tuple
1 2 3 | |
Mapping Data Type
Dictionary
1 2 3 4 5 6 | |
Boolean Data Type
1 2 3 4 5 6 7 8 | |
TODO
- Add Bytes
- Add None examples