How this Python track works
- Python 3 in the playground — write runnable scripts; the dev runner executes with python3. Use
print()for output—noconsole.logorSystem.out.println. - Language fundamentals focus — this track teaches Python syntax, data structures, OOP, stdlib, and modern features. Web frameworks live in the Django track after you finish here.
- Prerequisites — finish JavaScript (variables, functions, control flow). Java or C# help compare OOP and typing models.
Multi-file packages, pip-only third-party libraries, and Jupyter notebooks run locally—lessons keep runnable snippets to stdlib and print() where the sandbox requires it.
Install on your device (macOS, Linux, Windows)
Install Python 3.11+ locally for notebooks and frameworks; the on-site playground uses the dev runner when enabled.
macOS
brew install python@3.12or install from python.org (check “Add to PATH” on installers).- Create a project folder:
mkdir ~/python-practice && cd ~/python-practice. python3 -m venv .venv && source .venv/bin/activatepip install --upgrade pip
Linux
- Debian/Ubuntu:
sudo apt update && sudo apt install -y python3 python3-pip python3-venv - Fedora:
sudo dnf install -y python3 python3-pip python3 -m venv .venv && source .venv/bin/activatepip install --upgrade pip
Windows
- Install from python.org and enable Add python.exe to PATH.
- Or:
winget install Python.Python.3.12 - PowerShell:
py -3 -m venv .venv; .\.venv\Scripts\Activate.ps1 pip install --upgrade pip
Verify: python3 --version (or py --version on Windows) shows 3.11+.
Run code on this site (Backend & language playgrounds)
- Clone or open this project locally; copy
.env.exampleto.env. - Ensure
LEARNING_RUNNER_ENABLED=trueandLEARNING_RUNNER_URL=http://127.0.0.1:9999/v1/execute. - Terminal 1:
php artisan serve(orcomposer run devfor Laravel + Vite + runner together). - Terminal 2:
npm run runner— keep it running while you click Run on server.
Python is a high-level, dynamically typed language known for readable syntax and a vast standard library. It powers web backends, automation, data science, machine learning, and scripting—making it one of the most versatile first languages after JavaScript.
How this track differs from JavaScript and Java
After the JavaScript track, you know variables, functions, and dynamic typing in the browser. Python shares dynamic typing but uses indentation instead of braces, print() instead of console.log, and runs on CPython—not in the browser by default.
Compared to Java or C#, Python skips explicit type declarations (optional type hints come later), compiles to bytecode at runtime, and uses duck typing. Web frameworks like Django live in the separate Django track after this language foundation.
What you will learn
- Syntax: variables, strings, control flow, functions, and modules
- Data structures: lists, tuples, dicts, sets, comprehensions, and slicing
- OOP: classes, inheritance, dunder methods, and dataclasses
- Stdlib: file I/O, JSON/CSV, pathlib, datetime, itertools
- Modern Python: type hints, context managers, decorators, pytest, venv
Playground setup
This topic uses the server_script profile: the runner executes your script with python3. Use print() for output—stdlib modules are fine; third-party pip packages need local setup.
Important interview questions and answers
- Q: What executes Python code?
A: CPython reads source, compiles to bytecode, and runs it on the Python virtual machine with automatic memory management. - Q: Why learn Python after JavaScript?
A: You transfer function and control-flow thinking, then gain scripting, data structures, and backend career paths—including Django after this track.
Self-check
- In one sentence, what is CPython?
- Where does Django belong in this curriculum?
Tip: Finish JavaScript first—Python builds on familiar functions and control flow with indentation and print().
Interview prep
- What is Python in one sentence?
A high-level, dynamically typed language emphasizing readable syntax, automatic memory management, and a rich stdlib—widely used for web, data, and automation.
- Why learn Python after JavaScript?
JavaScript teaches functions and dynamic typing in the browser; Python transfers that thinking to servers, CLIs, and data—with a path to Django after this track.