First programs
Level 1 · estimatedWrite and run short Python programs, trace how values change and use error messages to fix a line.
Lessons
Read the whole unit on one page
- Run your first Python programLevel 1 · Foundations
- Tell text from numbersLevel 1 · Foundations
- Give a value a nameLevel 1 · Foundations
- Read a reply from the keyboardLevel 1 · Foundations
- Use an error message to fix a programLevel 1 · Foundations
Sources
- IDLE: Python editor and shell (Python 3.13 documentation). Python Software Foundation. PSF License Version 2. Read 25 Nov 2026. Cited in Run your first Python program, Use an error message to fix a program.
- Built-in Functions: print() (Python 3.13 documentation). Python Software Foundation. PSF License Version 2. Read 25 Nov 2026. Cited in Run your first Python program, Tell text from numbers.
- 3. An Informal Introduction to Python (Python 3.13 tutorial). Python Software Foundation. PSF License Version 2 (documentation examples also Zero-Clause BSD). Read 25 Nov 2026. Cited in Tell text from numbers, Give a value a name.
- The Python Language Reference (3.13): 7.2 Assignment statements. Python Software Foundation. PSF License Version 2. Read 25 Nov 2026. Cited in Give a value a name.
- Python 3.13 Built-in Functions (input). Python Software Foundation. Python Software Foundation License Version 2. Read 25 Nov 2026. Cited in Read a reply from the keyboard.
- Python 3.13 Built-in Functions (int). Python Software Foundation. Python Software Foundation License Version 2. Read 25 Nov 2026. Cited in Read a reply from the keyboard.
- 8. Errors and Exceptions. Python Software Foundation. Python Software Foundation License Version 2. Read 25 Nov 2026. Cited in Use an error message to fix a program.