Chapter: Variables and Data Types in Python
1. Variables in Python
1.1 What Are Variables?
1.2 Variable Naming Rules
1.3 Good Practices for Naming Variables
1.4 Assigning Values to Variables
2. Data Types in Python
2.1 Numeric Data Types
Numeric Type
Example
Notes
2.2 Text Data Type
Operation
Example
Result
2.3 Boolean Data Type
2.4 Sequence Data Types
Method
Example
Description
2.5 Mapping Data Type
Operation
Example
Result
2.6 Set Data Type
Method
Example
Description
2.7 NoneType
3. Type Conversion
4. Tricks and Precautions
Summary Table: Data Types in Python
Category
Type
Examples
Notes
Last updated