A structured, chapter-by-chapter guide to core Python — from your first script to object-oriented programming.
Companion guide to Linux for Beginners.
This repository contains eleven self-contained PDF chapters covering core Python fundamentals — installation, sets and dictionaries, object-oriented programming, file handling, functions, and more. Each chapter includes syntax-highlighted code examples, callouts for common gotchas, worked example questions, and a checklist to self-test before moving on.
| # | Chapter | Topics covered |
|---|---|---|
| 01 | Overview of Python | The language, the ecosystem, running your first script |
| 02 | Sets and Dictionaries | Unique collections and key–value lookups |
| 03 | Object-Oriented Concepts | Classes, inheritance, encapsulation, polymorphism |
| 04 | Libraries and Modules | The standard library, imports, module search path |
| 05 | File Handling | Reading, writing, and safely closing files |
| 06 | Functions | Parameters, lambdas, scope, return values |
| 07 | Strings | Command-line arguments and string operations |
| 08 | Variables & Numeric Types | Variables, operands, expressions, operators |
| 09 | Conditional & Control Statements | if/elif/else, for and while loops |
| 10 | Tuples and Lists | Mutable vs. immutable sequences, comprehensions |
| 11 | Errors and Exception Handling | try/except/finally, raising custom errors |
- Plain-language concept explanations
- Annotated, syntax-highlighted code examples
- Worked example questions with answers
- An end-of-chapter checklist to self-test
The chapters are self-contained — read them in order if you're starting from scratch, or jump directly to whichever topic you need.
Ashik A GitHub: @ashihh07
If this guide helped you, consider starring the repository.