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 to WeChat Moments
Python Workbook Learn Python in one day and Learn It Well (Jamie Chan, LCF Publishing)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
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
这本书是一本围绕 Python 基础语法展开的练习册,定位是 Jamie Chan 所著《Learn Python In One Day and Learn It Well(第二版)》的配套用书。书中明确建议,刚接触 Python 的读者最好先读主教材,再把这本书当作巩固练习;已经熟悉 Python 的人,则可以把它当作独立的练习册来检验和提升自己。它的基本用法是做题、对答案、看解析,重点不在讲新知识,而在通过大量小题目检验对语法的掌握程度。
从摘录可以看出几条主要线索。一是读代码推结果,例如给出使用 format 方法进行字符串格式化的语句,要求在不运行程序的情况下判断输出;也有涉及变量交换、循环与条件判断的题目,需要读者一步步跟踪 temp、product 等变量的变化,理清 range、break 和条件分支的执行过程。二是按需求写小段代码,比如把输入转换为整数、计算两个数的平均值并存入指定变量,或编写程序接收两个整数并输出指定范围内的结果。三是函数与参数,摘录中出现带默认参数的函数定义和多次不同参数个数的调用,要求判断每次调用会打印出什么。这些题目覆盖字符串格式化、列表与字典、输入输出与类型转换、条件与循环、函数等...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment