This book is designed to be the accompanying workbook for the book “Learn Python In One Day and Learn It Well (2nd Edition) ” by the same author.
If you are new to Python, you are strongly encouraged to get the above-mentioned book and use this accompanying workbook to help you in your learning.
If you are familiar with Python, you can use this book as a standalone workbook to test and improve your knowledge of the Python syntax, or use it as a compilation of examples, providing you with a quick reference to the syntax.
The goal of this workbook is to help you build your programming skills one concept at a time before working on bigger projects.
At the end of the book, there are two projects for you to work on to help you consolidate your learning and see how it all works together.
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 hands-on practice companion that turns Python fundamentals into muscle memory through short, targeted exercises and two capstone projects. Best for true beginners working alongside the main "Learn Python In One Day" text, or for rusty learners who want a fast syntax refresher.
【Book Arc】
- **Opening (~0%–9%)**: Sets expectations and scope — explains this is a workbook companion, not a standalone tutorial, and walks through installing an IDE (IDLE) and running Python 3 code.
- **Early (~9%–33%)**: Drills the core building blocks: variables, operators, and data types (strings, lists, tuples, dictionaries), with formatting and slicing exercises.
- **Middle (~33%–55%)**: Moves into interactivity and control flow — `input()`/`print()` formatting, `if`/`else` decisions, inline conditionals, and `for` loops over lists.
- **Late (~55%–85%)**: Covers functions and modules, file handling, and two-part Object-Oriented Programming (classes, then inheritance/advanced concepts like recursion and abstract methods).
- **Ending (~85%–100%)**: Two consolidation projects — "Spelling Out Numbers" and "Finding the nth Term of Sequences" (linear and quadratic) — that combine earlier chapters into complete programs.
【Key Takeaways】
- **This is a workbook, not a textbook** (Opening): It assumes you're either reading the main book or already know basic syntax; concepts are tested, not taught from scratch.
- **One concept per question** (Early): Each exercise isolates one or two ideas, so you build skills incrementally rather than facing overwhelming problems.
- **Predict-then-run is the core method** (Early–Middle): Many questions ask you to determine output *without* running code, forcing you to reason about execution rather than guess.
- **Formatting and string handling get heavy coverage** (Early–Middle): `%` operator, `format()`, and `split()` appear repeatedly — practical skills for real output.
- **Data structures are drilled hard** (Early): Lists, tuples, and dictionaries get extensive practice, including slicing, mutation, and deletion order pitfalls.
- **OOP is split into two stages** (Late): Part 1 covers classes and objects; Part 2 extends to inheritance and advanced topics like recursion and abstract methods.
- **Projects consolidate everything** (Ending): The two final projects require applying variables, loops, conditionals, and functions together — the real test of retention.
- **Solutions are suggestions, not gospel** (Opening): The book explicitly notes your solution may differ as long as behavior matches — encouraging independent problem-solving.
【Reading Tips】
- **Skim Chapter 1–2 if you already have Python installed**; deep-read from Chapter 3 onward where the actual exercises begin.
- **Attempt every "determine the output" question on paper first** — this is where the learning happens; then verify in your IDE.
- **Don't skip the OOP chapters even if they feel abstract** — they're prerequisites for understanding the project solutions.
- **Use the two projects as a self-test**: if you can't complete them without peeking, revisit the relevant chapters before moving on.
- **Download the source code** from the companion site if any wrapped code lines are hard to read.
【Coverage Limits】
This guide is based on stratified excerpts covering the table of contents, introductory chapters, and representative exercises through the middle of the book; the later OOP chapters and full project solutions are only partially represented, so specifics there are inferred from chapter titles and structure.
1 num = 5 num = num + 10 print(num) Output 15 Question 12 4.4 Question 13 15 16 Question 14 r = 11 s = 7 r = r + s print(r) print(s) Output 18 7 Question 15...
id not specify the total length of result when we use the %.3f formatter. This is acceptable as the specifying the total length is optional. Question 6 My na...
me?: ') favNum = input('Hi %s, what is your favorite number?: ' %(name)) print('%s\'s favorite number is %s.' %(name, favNum)) Question 10 cities = {'Chicago...
tween a and b inclusive and displays the result to the user. For instance, the program may behave as shown below (user input is in bold italics): Example 1:...
urrences of “a”. Each time “a” occurs, we increment j by 1. Question 21 for i in range(10): userInput = input('Please enter number %d: ' %(i+1)) #Assign the...
) Output The team members are Benny, Aaron, James and Kelly. Function Call teamMembers('Peter', 'John', 'Ben') Output The team members are Peter, John, Ben a...
d = 'Kelly'): print('The team members are %s, %s, %s and %s.' %(a, b, c, d)) teamMembers('Joanne', 'Lee') teamMembers('Benny', 'Aaron') teamMembers('Peter',...
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
Python Workbook Learn Python in one day and Learn It Well (Jamie Chan, LCF Publishing)(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
Python Workbook Learn Python in one day and Learn It Well (Jamie Chan, LCF Publishing)(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