What’s New in Python 101 2nd Edition

The original Python 101 was the first book I had ever written. In deciding to write a 2nd edition, I needed to decide what I should keep and what I should remove from the book. What I ended up doing was rewriting the book from the ground up.

Python 101 2nd Ed Kickstarter

In the original book, Python 101 was based on Python 3.5 and had the following sections:

  • Part I – Learning the basics
  • Part II – Learning from the library
  • Part III – Intermediate Odds and Ends
  • Part IV – Tips, tricks and tutorials
  • Part V – Packaging and Distribution

For the 2nd edition, I am dropping part II as most of that information can be covered in later chapters. Now that Python 3.8 is out, I am able to cover such things as

  • f-strings
  • assignment expressions
  • dictionaries being ordered by default
  • type hinting
  • source control
  • review questions for most chapters
  • and more!

And mention other neat things, like sub-interpreters, the futures module, and audit hooks, although those won’t be covered in detail. I am also planning on making the tutorials section into a more proof-of-concept section where you will have little useful scripts that you can take and use. That was already there to some degree, but I think these scripts will be even better than the original ones.

The distribution section will also get a makeover to cover the latest conventions for distributing your code to the Python Packaging Index. The original book’s coverage is out of date.

Also while the first book mentioned lots of different options for creating executables, the new version of the book will focus on only one or two, but it will show how to create a binary for Windows and Mac. I am investigating how to support Linux, but that may or may not be included.

I will be making quite a few chapters available in the free sample available on Leanpub so people can check it out before purchasing.

I hope you’ll check out the book. Feel free to ask questions in the comments or send me an email.

Python 101 2nd Edition will be released in September 2020

PyDev of the Week: Takeshi Komiya

This week we welcome Komiya Takeshi as our PyDev of the Week! Takeshi is a maintainer of Sphinx, Python’s documentation package. Takeshi is also the creator of blockdiag, diagram image generator. If you are interested in seeing some of the other projects that Komiya contributes to, you should check out his Github profile.

Let’s spend some time getting to know Takeshi better!

Can you tell us a little about yourself (hobbies, education, etc):

I am a software engineer from Tokyo, Japan. Now I work at Time Intermedia Corp. as CTO. Time Intermedia is a systems integrator.

I love to have tea when I’m programming. I often bring my laptop to a cafe and enjoy programming all day long. My hobbies include driving all around Japan and watching football games. Continue reading PyDev of the Week: Takeshi Komiya

Python 101 2nd Edition Kickstarter Ending in Two Days

My Kickstarter for the 2nd Edition of Python 101 is ending in less than two days. If you want a signed copy or to purchase one of my other books for a discount, you should check out the Kickstarter as I have lots of good deals on there.

Python 101 2nd Ed Kickstarter

Also, note that the 2nd Edition of Python 101 is a complete rewrite. This book will have all new content and is on track to be one of my longest books. I think you will really like it if you are a beginner learning Python or someone who has been using Python but would like to improve to the next level.

PyDev of the Week: Jessica Garson

This week we welcome Jessica Garson (@jessicagarson) as our PyDev of the Week! Jessica is a developer advocate at Twitter. She also teaches Python at New York University. You can see some of what she’s up to over on Github. Let’s spend some time getting to know her better!

Can you tell us a little about yourself (hobbies, education, etc):

I’m currently a Developer Advocate at Twitter, where I work to make sure developers have good experiences using the Twitter API. What that means is that I write example code, speak at conferences and create blog posts. I also make noise music with Python and perform regularly in the New York area under the artist name, Messica Arson. Before working in technology, I worked on political campaigns.

Jessica Garson

Continue reading PyDev of the Week: Jessica Garson

Python 101: Learning About Lists

Lists are a fundamental data type in the Python programming language. A list is a mutable sequence that is typically a collection of homogeneous items. Mutable means that you can change a list after its creation. You will frequently see lists that contain other lists. These are known as nested lists. You will also see lists that contain all manner of other data types, such as dictionaries, tuples or objects.

Let’s find out how you can create a list!

Creating Lists

There are several ways to create a list. You may construct a list in any of the following ways:

  • Using a pair of square brackets with nothing inside creates an empty list: []
  • Using square brackets with comma-separated items: [1, 2, 3]
  • Using a list comprehension: [x for x in iterable]
  • Using the list() function: list(iterable)

An iterable is a sequence, a container that supports iteration or an iterator object. Lists themselves are sequences as are strings.

Let’s look at a few examples of creating a list so you can see it in action: Continue reading Python 101: Learning About Lists

PyDev of the Week: Tommy Falgout

This week we welcome Tommy Falgout (@lastcoolname) as our PyDev of the Week! Tommy works on the Robo-Clippy project. You can see what else he is up to by checking out his website. Let’s take a few moments to get to know Tommy better!

Can you tell us a little about yourself (hobbies, education, etc):

I grew up in the bayous of Louisiana, and while everyone else was interested in 4-wheeling and hunting, I gravitated towards computers and spent hours on my Commodore 64.  Early on, I knew what it meant to be an outcast.
As I matured, my hobbies became numerous and varied, but all focused around my passion of building.  For 5 years hosted and competed in Dallas/Fort Worth’s annual trebuchet competition: Slingfest, and was even featured on an episode of Dude Perfect on Nickelodeon as a Trebuchet expert (complete with my own IMDB page!).  I also volunteer at a local Makerspace in Plano, TX (TheLab.ms), built a LEGO Robotic Clippy and competed in the Red Bull Soapbox Derby race.  After a few exciting near-misses from bodily harm, I’ve settled down and recently taken up crochet and hobby electronics.

Continue reading PyDev of the Week: Tommy Falgout

PyDev of the Week: Doug Farrell

This week we welcome Doug Farrell (@writeson) as our PyDev of the Week! Doug is working on Python book entitled The Well-Grounded Python Developer for Manning. He is also a contributor for Real Python. You can find out more about Doug on his website. Now let’s spend some time learning more about Doug!

Doug Farrell

Can you tell us a little about yourself (hobbies, education, etc.):

I’m a developer with a lot of other interests and have a varied background. After a couple passes through college, I graduated with an AS degree in commercial art in 1980, and a BS in Physics in 1983. Two clearly related fields. Part of why I graduated so late was having spent five years working at a bronze sculpture foundry. As fun as that was, it took me a while to realize the physical toll of working there wasn’t sustainable, and I went back to school. I guess I’m a slow learner.

During my last year of school, I bought a Tandy Color Computer and learned basic and a little 6809 assembler, and the programming hook was set in me. I’ve worked as a software developer in quite a few industries; process control, embedded systems, retail CDRom software, Internet reference titles, and web applications for production systems. I’ve also worked in several languages during that time; Pascal, Fortran, C/C++, Visual Basic, PHP, Python, and JavaScript.

My wife and are bicyclists and have ridden quite a few organized century rides. We’ve shortened our distances and ride more for enjoyment and fitness now, and of course, competing with each other. I also have gotten back into artistic pursuits and have started painting. This is challenging for me as I never did any creative painting work, or in a larger format. I know I tend to be a realist, but I’m trying to get more expressive fooling around with abstraction.

Susan and I have one daughter and son-in-law, and one grandson who just turned 3 and is fantastic! Continue reading PyDev of the Week: Doug Farrell

PyDev of the Week: Hameer Abbasi

This week we welcome Hameer Abbasi as our PyDev of the Week! Hameer works on the PyData Sparse project. You can check out what else Hameer is working on over on Github. Let’s take some time to get to know him better!

Can you tell us a little about yourself (hobbies, education, etc):

My hobby is, and has been for a while, scientific computing in general, the ecosystem and how to make it better. I’m lucky and grateful to have found a job in that same field, even though my formal education wasn’t in either Mathematics or Computer Science. Moving over to my education, I completed my Bachelors in Electrical (Telecommunications) Engineering from National University of Sciences and Technology, Pakistan in July 2014. After being a professional for a year at LMK Resources, Pakistan until September, 2015, I moved to Germany and completed my Masters in Information and Communication Engineering from Technische Universität Darmstadt (English: Technical University of Darmstadt) in October, 2015. I started with Quansight as a contractor then, and I’m continuing that to date. Continue reading PyDev of the Week: Hameer Abbasi

Python 101 2nd Edition Fully Funded + Stretch Goals

The second edition of my book, Python 101, has been successfully funded on Kickstarter. As is tradition, I have added a couple of stretch goals for adding more content to this already hefty book.

Python 101 2nd Ed Kickstarter

Here are the goals:

1) $5000 – Get 4 Bonus Chapters

These chapters would cover the following topics:

  • Assignment Expressions
  • How to Create a GUI
  • How to Create Graphs
  • How to Work with Images in Python

2) $7500 – Add Chapter Review Questions

The additional chapters are pretty exciting to me as they are fun things to do with Python while also being useful. The assignment expression chapter is also something that is new in Python and may be of use to you soon.

Adding chapter review questions was something I have always wanted to do with Python 101. Hopefully you will find that idea interesting as well.

If you are interested in getting the book or supporting this site, you can head over to Kickstarter now. There are some really good deals for some of my other books there too!