Python Syntax Lab
BasicsBeginner
Variable assignment
Store an impression count for later calculations.
Use variables to store values.
Python example
impressions = 125000Practice editor
Type Python here. Nothing is executed.
Python highlightingSaved locally
Loading editor...
Drafts are stored in this browser for this example only. No Python is executed.
Notes
- Python uses a single equals sign to assign a value.
- Variable names should be readable and descriptive.
Related concepts
variablesassignment
Drafts save locally. No Python execution is present.