Variables names:
- Can contain only letters ([a-zA-Z]), numbers ([0-9]), and/or underscores (_).
- Must start with a letter or underscore.
- Can't start with a number.
- Are case-sensitive.
- Can't use Python reserver keywords.
As best practices, you should use
descriptive and lowercase (e.g., value) for variable names.
You should use undrscores for multi-word variable names (e.g., max_value)
and use all uppercase for constants (MAX_VALUE = 10).
Define a variable:
Multiple assignment: Assign multiple variable in one instruction:
Multiple assignment: Assign same value to multiple variables:
Swapping variables: