Python for Beginners
Niveaux scolaires: Grade 12
Système éducatif: American
Learn Python programming from scratch.
#Python
1. Configure and operate a Python 3 development environment using CPython, venv, pip, and an IDE or REPL.
Objectifs d'apprentissage:
1. Install CPython 3.x and verify the interpreter from the command line (e.g., python --version).
2. Create and activate an isolated virtual environment with python -m venv and confirm site-packages are sandboxed.
3. Manage packages with pip (install, upgrade, uninstall) and export dependencies with pip freeze > requirements.txt.
4. Configure VS Code (or comparable IDE) to run Python scripts, open an integrated terminal, and launch the REPL.
5. Run Python code from the terminal, in the REPL, and in a Jupyter Notebook to validate the toolchain.
2. Write Python scripts that implement variables, expressions, and control flow constructs to solve basic computational problems.
Objectifs d'apprentissage:
1. Declare and use variables of built-in types (int, float, str, bool) and perform explicit type conversions.
2. Evaluate expressions using arithmetic, comparison, logical, and membership operators to compute results.
3. Implement decision logic with if/elif/else using clear boolean conditions and operator precedence.
4. Construct loops (for with range and while) using iteration patterns, break/continue, and loop else clauses where appropriate.
5. Produce console I/O with input and print, formatting output with f-strings and format specifiers.
