This book is an in-depth and activity-based introduction to the intermediate level topics of Python programming. It follows a step-by-step practical approach by combining the theory of the language with the hands-on coding exercises including quizzes, projects, assignments and exams.
We begin by setting up the development environment, the PyCharm IDE. Then we cover Exception Handling, Modules & Packages, Format Operations and File Operations in Python. Further we cover one of the most important topics in computer programming which is OOP (Object Oriented Programming). We build two big projects that are the PDF & CSV Operations and the Movie Library with Tkinter. Especially in the Movie Library we build a real world project which you can use as a reference in your programming life. You will also have assignments after each project. And finally we have the final exam which will let you to test your Python level.
By the end of the book, you will learn almost all of the intermediate level concepts of Python in great detail by writing thousands of lines of code. All the supplementary resources (code files, quizzes, assignments, final exam etc.) are available for download at the Github repository. The link for the repository is provided in the book.
This is the second book in Hands-On Python Series. And here is what you will find in this book:
Theory: In each topic, we will cover all the Theoretical Details with example coding.
Coding Exercises (50 questions): At the end of each chapter, we will have Coding Exercise, Quizzes, of 10 questions.
Projects (2): We will have 2 Projects in this book. You will learn how to apply Python concepts on real world problems.
Assignments (2): After each project, you will have an Assignment. These assignments will let you build the project from scratch on your own.
Final Exam: At the end of this book you will have the Final Exam. It is a multiple choice exam with 20 questions and a limited duration. The exam will let you to
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A practice-first bridge from Python basics to real intermediate fluency: you learn exceptions, modules, formatting, files, and OOP by writing code, then prove it by building a CSV/PDF toolkit and a Tkinter movie library. Best for learners who already know Python syntax and want structured, project-based reps rather than another theory tome.
【Book Arc】
- **Opening (~0%–15%)**: Environment setup in PyCharm (interpreter, virtual environment, first project) plus exception handling — try/except/else/finally, raising custom errors, and `assert` for debugging. Solves the "my code crashes and I don't know why" problem.
- **Early (~15%–35%)**: Modules and packages (imports, `from ... import`, the `sys.modules` map), format operations (`%`, `str.format()`, f-strings), and file operations — read/write/append modes, the `with` context manager, and directory/file searching with `os`, `pathlib`, and `fnmatch`.
- **Middle (~35%–55%)**: Project 1 — PDF & CSV Operations. You split logic into `csv_operations.py` and `pdf_operations.py`, drive them from `main.py`, and use `csv` plus external packages (`PyPDF2`, `pdfplumber`) to read, extract, merge, and rotate PDFs.
- **Late (~55%–80%)**: OOP fundamentals — classes, attributes, methods, and inheritance, illustrated with a "scientific family" example — the conceptual core that the second project depends on.
- **Ending (~80%–100%)**: Project 2 — Movie Library with Tkinter, a real-world GUI app, followed by an assignment to rebuild it from scratch and a timed 20-question multiple-choice final exam.
【Key Takeaways】
- **Exceptions are control flow, not just error messages** (Opening): you learn to catch specific errors (`ValueError`, `ZeroDivisionError`, `FileNotFoundError`), raise your own, and use `assert` for debugging checks.
- **`with` is the safe default for file handling** (Early): the context manager closes files automatically, sparing you the full try/except/else/finally dance — and it protects you from the destructive `'w'` mode that silently erases existing content.
- **Formatting has three generations, and f-strings win** (Early): `%` operators, `str.format()`, and f-strings are all covered, with f-strings presented as the most powerful and common choice.
- **Modules turn scripts into maintainable projects** (Early): the book repeatedly splits code into importable files (`csv_operations`, `pdf_operations`) called from `main.py`, modeling real project structure.
- **Real work needs external packages** (Middle): PDF handling requires installing `PyPDF2` and `pdfplumber` into the project's virtual environment — a practical lesson in dependency management.
- **CSV and PDF operations are genuinely useful skills** (Middle): reading delimited files (including custom delimiters like `;`), extracting pages, merging, and rotating PDFs are directly transferable tasks.
- **OOP is the pivot to serious programming** (Late): classes, attributes, methods, and inheritance are framed as one of the most important topics in programming, and they underpin the GUI project.
- **Practice is graded, not optional** (Ending): 50 quiz questions, two projects, two rebuild-from-scratch assignments, and a timed final exam force active recall rather than passive reading.
【Reading Tips】
- **Deep-read the exception and file chapters** (Opening–Early): these are the foundation for every later project, and the try/except/else/finally patterns recur constantly.
- **Skim the PyCharm setup if you're already comfortable** (Opening): the interpreter and virtual-environment material is necessary for beginners but quickly skippable for others.
- **Type the project code yourself, don't just read it** (Middle–Ending): the book's value is in the thousands of lines you write; the assignments explicitly ask you to rebuild each project from scratch, so treat them as the real test.
- **Do the quizzes before checking solutions** (throughout): each chapter ends with 10 questions, and the solutions are printed immediately after — cover them first.
- **Treat the final exam as a diagnostic** (Ending): the timed 20-question exam tells you which intermediate topics still need review.
【Coverage Limits】
The excerpts cover the book's structure, exception handling, modules, formatting, file operations, and the start of the CSV/PDF project, but they do not detail the OOP chapter's full content, the Tkinter Movie Library implementation, or the final exam questions. Specific code listings and figures referenced in the excerpts are not reproduced here.
Page 7
s will let you build the project from scratch on your own. Final Exam: At the end of this book you will have the Final Exam. It is a multiple choice exam wit...
finally block in any case. We intend 6 give_me_a_key() [7]: Please give me a key: b B Q8: Define a function named item_at_index . It will take a list and an...
the current item is a file or not as: if os.path.isfile(c). And we print it if it’s a file. You see a list of files only in the output. Way 2: os.scandir() W...
l open the files in append ( 'a') mode, NOT IN write ( 'w'). Remember that, we will lose all the existing content in the file, if we open it in ‘w’ mode. [10...
lse: 16 self.__price = new_price polymorphism. 13 # super class properties 14 # child class 2 properties 15 pass As you see in cell 52, the SuperClass has so...
this intense book. And I am very happy to be a part of this. I hope we see each other again in another programming book. Till then, I hope, you have wonderfu...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Hands-On Python with 50 Exercises, 2 Projects, 2 Assignments Final Exam INTERMEDIATE (Musa Arda)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Hands-On Python with 50 Exercises, 2 Projects, 2 Assignments Final Exam INTERMEDIATE (Musa Arda)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment