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
🎉🎉 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
You can also read the entire book as a series of posts here:
The https://github.com/learnbyexample/100_page_python_intro repo has program/example files, markdown source and other details about the book.
- Numeric data types
- Strings and user input
- Defining functions
- Control structures
- Importing and creating modules
- Installing modules and Virtual environments
- Exception handling
- Tuple and Sequence operations
- Text processing
- Comprehensions and Generator expressions
- Dealing with files
- Executing external commands
- Command line arguments
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
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
endswith()string methods support
tupleargument for testing multiple substrings
Command line options like
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.
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 :)