Prev | Index | NextSummary of Python Data Types
- Python provides you with all the familiar data types
- Immutable: strings, numbers, floats, tuples
- Mutable: lists and dictionaries
- Use lists if your elements should be ordered
- Use tuples if your lists shouldn't be modifiable
- Use dictionaries to map keys to values
An Introduction To Python