|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 5 | + <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 6 | + |
| 7 | + <!-- Enable responsiveness on mobile devices--> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> |
| 9 | + |
| 10 | + <title>learnbyexample - 100 Page Python Intro book announcement</title> |
| 11 | + |
| 12 | + |
| 13 | + <link rel="alternate" type="application/atom+xml" title="RSS" href="https://learnbyexample.github.io/atom.xml"> |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/slideout/1.0.1/slideout.min.js"></script> |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + <link rel="stylesheet" href="https://learnbyexample.github.io/site.css"> |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +<link rel="icon" href="https://learnbyexample.github.io/favicon.svg"> |
| 29 | +<link rel="shortcut icon" href="https://learnbyexample.github.io/favicon.png"> |
| 30 | + </head> |
| 31 | + |
| 32 | + <body> |
| 33 | + <div class="container"> |
| 34 | + |
| 35 | + <div id="mobile-navbar" class="mobile-navbar"> |
| 36 | + <div class="mobile-header-logo"> |
| 37 | + <a href="/" class="logo">learnbyexample</a> |
| 38 | + </div> |
| 39 | + <div class="mobile-navbar-icon icon-out"> |
| 40 | + <span></span> |
| 41 | + <span></span> |
| 42 | + <span></span> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + |
| 46 | + <nav id="mobile-menu" class="mobile-menu slideout-menu slideout-menu-left"> |
| 47 | + <ul class="mobile-menu-list"> |
| 48 | + |
| 49 | + <li class="mobile-menu-item"> |
| 50 | + <a href="https://learnbyexample.github.io"> |
| 51 | + Home |
| 52 | + </a> |
| 53 | + </li> |
| 54 | + |
| 55 | + <li class="mobile-menu-item"> |
| 56 | + <a href="https://learnbyexample.github.io/books"> |
| 57 | + Books |
| 58 | + </a> |
| 59 | + </li> |
| 60 | + |
| 61 | + <li class="mobile-menu-item"> |
| 62 | + <a href="https://learnbyexample.github.io/tags"> |
| 63 | + Tags |
| 64 | + </a> |
| 65 | + </li> |
| 66 | + |
| 67 | + <li class="mobile-menu-item"> |
| 68 | + <a href="https://learnbyexample.github.io/about"> |
| 69 | + About |
| 70 | + </a> |
| 71 | + </li> |
| 72 | + |
| 73 | + </ul> |
| 74 | + </nav> |
| 75 | + |
| 76 | + <header id="header"> |
| 77 | + <div class="logo"><a href="https://learnbyexample.github.io">learnbyexample</a></div> |
| 78 | + <nav class="menu"> |
| 79 | + <ul> |
| 80 | + |
| 81 | + <li> |
| 82 | + <a href="https://learnbyexample.github.io"> |
| 83 | + Home |
| 84 | + </a> |
| 85 | + </li> |
| 86 | + |
| 87 | + <li> |
| 88 | + <a href="https://learnbyexample.github.io/books"> |
| 89 | + Books |
| 90 | + </a> |
| 91 | + </li> |
| 92 | + |
| 93 | + <li> |
| 94 | + <a href="https://learnbyexample.github.io/tags"> |
| 95 | + Tags |
| 96 | + </a> |
| 97 | + </li> |
| 98 | + |
| 99 | + <li> |
| 100 | + <a href="https://learnbyexample.github.io/about"> |
| 101 | + About |
| 102 | + </a> |
| 103 | + </li> |
| 104 | + |
| 105 | + </ul> |
| 106 | + </nav> |
| 107 | + </header> |
| 108 | + |
| 109 | + <main> |
| 110 | + <div class="content" id="mobile-panel"> |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | +<div class="post-toc" id="post-toc"> |
| 115 | + <h2 class="post-toc-title">Contents</h2> |
| 116 | + <div class="post-toc-content always-active"> |
| 117 | + <nav id="TableOfContents"> |
| 118 | + <ul> |
| 119 | + |
| 120 | + <li> |
| 121 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#ebook-links" class="toc-link">Ebook links</a> |
| 122 | + |
| 123 | + </li> |
| 124 | + |
| 125 | + <li> |
| 126 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#web-version" class="toc-link">Web version</a> |
| 127 | + |
| 128 | + </li> |
| 129 | + |
| 130 | + <li> |
| 131 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#github-repo" class="toc-link">GitHub repo</a> |
| 132 | + |
| 133 | + </li> |
| 134 | + |
| 135 | + <li> |
| 136 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#table-of-contents" class="toc-link">Table of Contents</a> |
| 137 | + |
| 138 | + </li> |
| 139 | + |
| 140 | + <li> |
| 141 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#motivation-and-faq" class="toc-link">Motivation and FAQ</a> |
| 142 | + |
| 143 | + </li> |
| 144 | + |
| 145 | + <li> |
| 146 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/#feedback" class="toc-link">Feedback</a> |
| 147 | + |
| 148 | + </li> |
| 149 | + |
| 150 | + </ul> |
| 151 | + </nav> |
| 152 | + </div> |
| 153 | +</div> |
| 154 | + |
| 155 | + |
| 156 | +<article class="post"> |
| 157 | + |
| 158 | + <header class="post__header"> |
| 159 | + <h1 class="post__title"> |
| 160 | + <a href="https://learnbyexample.github.io/100-page-python-intro-book-announcement/">100 Page Python Intro book announcement</a> |
| 161 | + </h1> |
| 162 | + <div class="post__meta"> |
| 163 | + <span class="post__time">2021-02-10</span> |
| 164 | + |
| 165 | + </div> |
| 166 | + </header> |
| 167 | + |
| 168 | + <div class="post-content"> |
| 169 | + <p>Hello!</p> |
| 170 | +<p>I just published my ebook titled "<strong>100 Page Python Intro</strong>". This book is a short, introductory guide for the Python programming language. This book is well suited:</p> |
| 171 | +<ul> |
| 172 | +<li>As a reference material for Python beginner workshops</li> |
| 173 | +<li>If you have prior experience with another programming language</li> |
| 174 | +<li>If you want a complement resource after reading a Python basics book, watching a video course, etc</li> |
| 175 | +</ul> |
| 176 | +<span id="continue-reading"></span><h2 id="ebook-links">Ebook links<a class="zola-anchor" href="#ebook-links" aria-label="Anchor link for: ebook-links">🔗</a></h2> |
| 177 | +<p><strong>PDF/EPUB</strong> versions are FREE (until 17 Feb, 2021) along with some of my other books. You can get them from Gumroad or Leanpub using the links given below:</p> |
| 178 | +<ul> |
| 179 | +<li><strong>100 Page Python Intro</strong>: <a href="https://gumroad.com/l/100pagepythonintro">https://gumroad.com/l/100pagepythonintro</a> or <a href="https://leanpub.com/100pagepythonintro">https://leanpub.com/100pagepythonintro</a></li> |
| 180 | +<li><strong>Python re(gex)?</strong>: <a href="https://gumroad.com/l/py_regex">https://gumroad.com/l/py_regex</a> or <a href="https://leanpub.com/py_regex">https://leanpub.com/py_regex</a></li> |
| 181 | +<li><strong>Magical one-liners</strong> bundle: <a href="https://gumroad.com/l/oneliners">https://gumroad.com/l/oneliners</a> or <a href="https://leanpub.com/b/oneliners">https://leanpub.com/b/oneliners</a></li> |
| 182 | +</ul> |
| 183 | +<p align="center"><img src="/images/books/python_intro.png" alt="100 Page Python Intro book cover image" /></p> |
| 184 | +<p align="center">Cover art: <a href="https://ko-fi.com/profetessaoscura">Ilsa Olson</a></p> |
| 185 | +<h2 id="web-version">Web version<a class="zola-anchor" href="#web-version" aria-label="Anchor link for: web-version">🔗</a></h2> |
| 186 | +<p>You can also read the book online here: <a href="https://learnbyexample.github.io/100_page_python_intro/introduction.html">https://learnbyexample.github.io/100_page_python_intro/introduction.html</a>.</p> |
| 187 | +<h2 id="github-repo">GitHub repo<a class="zola-anchor" href="#github-repo" aria-label="Anchor link for: github-repo">🔗</a></h2> |
| 188 | +<p>The <a href="https://github.com/learnbyexample/100_page_python_intro">https://github.com/learnbyexample/100_page_python_intro</a> repo has program/example files, markdown source and other details about the book.</p> |
| 189 | +<h2 id="table-of-contents">Table of Contents<a class="zola-anchor" href="#table-of-contents" aria-label="Anchor link for: table-of-contents">🔗</a></h2> |
| 190 | +<ol> |
| 191 | +<li>Preface</li> |
| 192 | +<li>Introduction</li> |
| 193 | +<li>Numeric data types</li> |
| 194 | +<li>Strings and user input</li> |
| 195 | +<li>Defining functions</li> |
| 196 | +<li>Control structures</li> |
| 197 | +<li>Importing and creating modules</li> |
| 198 | +<li>Installing modules and Virtual environments</li> |
| 199 | +<li>Exception handling</li> |
| 200 | +<li>Debugging</li> |
| 201 | +<li>Testing</li> |
| 202 | +<li>Tuple and Sequence operations</li> |
| 203 | +<li>List</li> |
| 204 | +<li>Mutability</li> |
| 205 | +<li>Dict</li> |
| 206 | +<li>Set</li> |
| 207 | +<li>Text processing</li> |
| 208 | +<li>Comprehensions and Generator expressions</li> |
| 209 | +<li>Dealing with files</li> |
| 210 | +<li>Executing external commands</li> |
| 211 | +<li>Command line arguments</li> |
| 212 | +</ol> |
| 213 | +<h2 id="motivation-and-faq">Motivation and FAQ<a class="zola-anchor" href="#motivation-and-faq" aria-label="Anchor link for: motivation-and-faq">🔗</a></h2> |
| 214 | +<p>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 <code>C</code>, <code>Java</code>, 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 <a href="https://learnbyexample.github.io/practice_python_projects/"><strong>Practice Python Projects</strong></a>, 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:</p> |
| 215 | +<ul> |
| 216 | +<li>Exploring <a href="https://docs.python.org/3/glossary.html">docs.python: Glossary</a></li> |
| 217 | +<li>You cannot have mutable objects as a <code>set</code> element!</li> |
| 218 | +<li><code>startswith()</code> and <code>endswith()</code> string methods support <code>tuple</code> argument for testing multiple substrings</li> |
| 219 | +<li><a href="https://docs.python.org/3/using/cmdline.html">Command line options</a> like <code>-q</code>, <code>-B</code>, etc</li> |
| 220 | +</ul> |
| 221 | +<p><em>Why is it called <strong>100 Page Python Intro</strong> when it has more than 100 pages?</em></p> |
| 222 | +<blockquote> |
| 223 | +<p>There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors — Leon Bambrick</p> |
| 224 | +</blockquote> |
| 225 | +<p>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.</p> |
| 226 | +<h2 id="feedback">Feedback<a class="zola-anchor" href="#feedback" aria-label="Anchor link for: feedback">🔗</a></h2> |
| 227 | +<p>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.</p> |
| 228 | +<p>Issue Manager: <a href="https://github.com/learnbyexample/100_page_python_intro/issues">https://github.com/learnbyexample/100_page_python_intro/issues</a></p> |
| 229 | +<p>E-mail: learn by example.net@gmail.com (without the spaces)</p> |
| 230 | +<p>Twitter: <a href="https://twitter.com/learn_byexample">https://twitter.com/learn_byexample</a></p> |
| 231 | +<p>Happy learning :)</p> |
| 232 | + |
| 233 | + </div> |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + <div class="post-footer"> |
| 239 | + |
| 240 | + |
| 241 | + <div class="post-tags"> |
| 242 | + |
| 243 | + <a href="https://learnbyexample.github.io/tags/python/">#python</a> |
| 244 | + |
| 245 | + <a href="https://learnbyexample.github.io/tags/ebook/">#ebook</a> |
| 246 | + |
| 247 | + </div> |
| 248 | + |
| 249 | + |
| 250 | + <div class="post-nav"> |
| 251 | + |
| 252 | + <a class="previous" href="https://learnbyexample.github.io/2020-favorite-fiction/">‹ Favorite fictional books I read this year</a> |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + </div> |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + </div> |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | +</article> |
| 267 | + |
| 268 | + |
| 269 | + </div> |
| 270 | + </main> |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + </div> |
| 275 | + |
| 276 | + |
| 277 | + <script type="text/javascript" src="https://learnbyexample.github.io/even.js" ></script> |
| 278 | + |
| 279 | + </body> |
| 280 | + |
| 281 | +</html> |
0 commit comments