Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Jamie Chan, LCF Publishing

Rating No ratings yet

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

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.
Excerpt 1
ion) --Workbook-- By Jamie Chan https://www.learncodingfast.com/python Copyright © 2019 All rights reserved. No part of this publication may be reproduced, d...
View in text
Excerpt 2
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...
View in text
Excerpt 3
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...
View in text
Excerpt 4
me?: ') favNum = input('Hi %s, what is your favorite number?: ' %(name)) print('%s\'s favorite number is %s.' %(name, favNum)) Question 10 cities = {'Chicago...
View in text
Excerpt 5
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:...
View in text
Excerpt 6
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...
View in text
Excerpt 7
) 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...
View in text
Excerpt 8
d = 'Kelly'): print('The team members are %s, %s, %s and %s.' %(a, b, c, d)) teamMembers('Joanne', 'Lee') teamMembers('Benny', 'Aaron') teamMembers('Peter',...
View in text
Tags
AI categories
PythonProgrammingEducation
ISBN: B07WH99L1J
Publisher: CreateSpace
Publish Year: 2019
Language: English
Pages: 165
File Format: EPUB
File Size: 245.0 KB