A beginner-friendly Jupyter Notebook covering core Python programming concepts, structured as personal study notes with annotated code examples and hands-on mini-projects.
Based on personal notes from Programming with Mosh.
| # | Topic | Description |
|---|---|---|
| 1 | Variables | Declaring and using variables |
| 2 | Strings | String creation, indexing, and methods |
| 3 | Arithmetic Operators | Math operations in Python |
| 4 | Operator Precedence | PEMDAS / order of operations |
| 5 | If Statements | Conditional logic |
| 6 | Logical & Comparison Operators | and, or, not, ==, >, <, etc. |
| 7 | While Loops | Repeated execution with a condition |
| 8 | For Loops | Iterating over collections, nested loops |
| 9 | Lists | List creation, indexing, methods |
| 10 | Tuples | Immutable sequences & unpacking |
| 11 | Dictionaries | Key-value pairs |
| 12 | Functions | Defining and calling functions |
| 13 | Classes | OOP basics, constructors, inheritance |
| 14 | Modules | Importing and using Python modules |
Three small projects are embedded throughout the notebook to apply concepts in context:
- Weight Converter — Converts weight between kg and lbs using operators and conditionals
- Guessing Game — A number-guessing game using while loops and user input
- Car Game — A simple interactive game combining loops, conditionals, and functions
- Python 3.x
- Jupyter Notebook or JupyterLab
pip install jupyter
jupyter notebook PYTHON_101.ipynb- Run cells top to bottom to avoid reference errors.
- Feel free to modify examples and experiment — that's the best way to learn!
- This notebook is structured as personal study notes, so comments and explanations are written in plain language.
- No external libraries required — everything uses Python's built-in features.