Sundeep
Posted on February 12, 2021
Hello!
I recently published my ebook titled "100 Page Python Intro". This book is a short, introductory guide for the Python programming language. This book is well suited:
- As a reference material for Python beginner workshops
- If you have prior experience with another programming language
- If you want a complement resource after reading a Python basics book, watching a video course, etc
Ebook links
šš To celebrate, I'm giving away FREE PDF/EPUB versions (until 17 Feb, 2021) along with some of my other books. You can get them from Gumroad/Leanpub using the links given below:
- 100 Page Python Intro
- Python re(gex)?
- Magical one-liners bundle
Web version
You can also read the entire book as a series of posts here:
GitHub repo
The https://github.com/learnbyexample/100_page_python_intro repo has program/example files, markdown source and other details about the book.
Table of Contents
- Preface
- Introduction
- Numeric data types
- Strings and user input
- Defining functions
- Control structures
- Importing and creating modules
- Installing modules and Virtual environments
- Exception handling
- Debugging
- Testing
- Tuple and Sequence operations
- List
- Mutability
- Dict
- Set
- Text processing
- Comprehensions and Generator expressions
- Dealing with files
- Executing external commands
- Command line arguments
Motivation and FAQ
I've been conducting a few Python introduction workshops for college students and faculty for the past four years (which came to a premature end thanks to the pandemic). These students were already familiar with another programming languages such as C
, Java
, etc. I used to provide my notes in PDF format as a workshop reference material, further reading resources, etc. After I started writing a book titled Practice Python Projects, I realized I'd be better served by improving my Python knowledge first. What better way to do it than writing a book? And it did teach me a lot of things, some of the highlights being:
- Exploring docs.python: Glossary
- You cannot have mutable objects as a
set
element! -
startswith()
andendswith()
string methods supporttuple
argument for testing multiple substrings -
Command line options like
-q
,-B
, etc
Why is it called "100 Page Python Intro" when it has more than 100 pages?
There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors ā Leon Bambrick
The material I was using for my workshops was 56 pages. I had more chapters to add, but I thought it would be a struggle to reach 100 pages, instead of overshooting the goal in the end. The measurement also depends on a few factors. The main content will be less than 100 pages if I reduce the font size from 12 to 11, exclude cover, TOC, Preface, etc.
Feedback
Hope you find it useful and fun to learn Python. As always, I'd highly appreciate your feedback. Please do let me know if you spot any error or typo.
Happy learning :)
Posted on February 12, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.