Python Data Types Fun
Python Data Types Fun
1. Numeric Types
2. Sequence Types
- list: List, an ordered collection of items, e.g., [1, 2, 3], ["apple", "banana"]
- tuple: Tuple, an ordered and immutable collection of items, e.g., (1, 2, 3), ("a", "b")
3. Mapping Type
- dict: Dictionary, a collection of key-value pairs, e.g., {"name": "Alice", "age": 30}
4. Set Types
Python Data Types
- set: Set, an unordered collection of unique items, e.g., {1, 2, 3}, {"a", "b"}
5. Boolean Type
6. Binary Types
7. None Type