Leanpub Header

Skip to main content

Python, Step by Step — Illustrated

From your first instruction to working with data

Python, Step by Step — Illustrated
This book is 100% completeLast updated on 2026-10-19

Learn Python through annotated diagrams, worked examples and practical projects—from variables and loops to pandas, classes and data preparation. Includes the updated 79-page PDF and fixed-layout EPUB.

Minimum price

$7.00

$7.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
About

About

About the Book

From first instructions to working with data. Build intuition through annotated diagrams, small worked examples and step-by-step explanations.

WHAT YOU WILL LEARN

1. First Python programs

Notebooks, print, arithmetic, variables, strings, input, type conversion, operator precedence, floor division and remainders.

2. Decisions and repetition

Comparisons, Boolean logic, if/elif/else, for and range, while, accumulators, break, continue and input-validation loops.

3. Collections

Lists, indexing, slicing and updates; dictionaries and records; tuples and sets; nested lists, aliasing and copying.

4. Functions and readable code

Parameters, return values, defaults, positional and keyword arguments, string methods, split, enumerate, zip and formatted strings.

5. Errors and reliable values

Reading errors, try/except, raise and finally; None versus zero and False; floating-point precision, isclose and formatting.

6. Files and packages

Imports, modules and packages, pip, paths, reading/writing/appending text, CSV validation and JSON. The updated edition includes local virtual-environment setup and matching installation and execution environments.

7. Data for ML and GenAI

NumPy arrays, pandas inspection, missing values and filtering, features and labels, text records and Matplotlib plots.

8. Transform collections

Comprehensions, matrix transposition, sorting with keys, lambdas, map, filter, all and any.

9. Reusable program structures

Recursion with a decision-tree example; classes, instances, fit/predict-style methods, inheritance and special methods.

10. Process data in stages

Iterators, generators and batches; a word-count example and an order-summary project with validation, tests and output.

11. Practice throughout

Small worked programs and checks that connect individual language features into usable data-processing workflows.

WHAT IS INCLUDED

79-page PDF: a cover plus 78 illustrated lesson pages. A fixed-layout EPUB preserves the same visual pages and includes navigation. The lesson text is embedded in images and does not reflow; phones may require zooming.

A free opening-lesson PDF lets you preview the teaching style before buying.

WHO IT IS FOR

Readers who want a visual, example-led introduction or refresher. Follow the calculations and practice checks at your own pace.

Pramod Kumar Tyagi · www.bitmonkey.ai

© 2026 Bitmonkey IT Services Pvt Ltd. All rights reserved.

Share this book

Author

About the Author

Pramod Kumar Tyagi

Pramod Kumar Tyagi is an AI and digital architect with more than 20 years of experience designing and scaling enterprise technology platforms. He is the founder of Bitmonkey IT Services Pvt Ltd, where his work spans AI products, digital transformation and interactive AI/ML education.

Previously, Pramod served as Principal Architect and Head of Enterprise Integration & AI Centre of Excellence at NTT DATA Services. His experience includes AI and machine learning, cloud architecture, data platforms and intelligent automation across banking, payments, healthcare, retail and supply chain.

He holds an MS in Aerospace Engineering from the Indian Institute of Science (IISc), Bangalore, and is a TOGAF-certified solution architect.

His illustrated books use annotated diagrams, worked examples and practical scenarios to help readers build intuition for programming and the mathematics behind machine learning.

Explore his work at www.bitmonkey.ai.

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub