Welcome! This notebook is designed to teach you Python by building on what you already know from JavaScript.
Each section follows the same pattern:
- Concept — a short explanation comparing Python to JavaScript
- Examples — runnable code cells showing how it works
- Exercise — a challenge for you to solve using what you just learned
How to use the notebooks: Read each section, run the example cells, then complete the exercises in the cells marked with ✏️. Remove the
passplaceholder and write your solution.
-
python_print— Printing in Python (print(), f-strings, formatting) -
python_lists— Lists (Python's arrays): indexing, slicing, list comprehensions -
python_loops— Loops: for, while -
python_json_dicts— JSON and Dictionaries: creating, accessing, modifying -
final_exercise— A final bonus challenge