r/learnpython • • Nov 10 '16

Automate the Boring stuff with Python vs Python crash course

Hu guys, Which one of these books would you recommend a complete beginner? Im interested in Python because of the Raspberry Pi, which is the device i want to learn how to program better.

Thanks

75 Upvotes

9 comments sorted by

17

u/EyebrowZing Nov 10 '16

I'd recommend both. Crash course has plenty of good foundation information that the former lacks, while automate has great examples of practical application. I heavily referenced both books while building my first project.

13

u/Milkmanps3 Nov 11 '16 edited Nov 11 '16

To be honest both are good. But if I HAD to pick one I'd pick Automate the Boring Stuff.. Here's an automate the boring stuff lesson playlist by the guy who wrote the book, it goes up to lesson 15.. Enjoy! Automate The Boaring Stuff with Python Lesson Playlist(Up to lesson 15)

I'd also recommend:

A Byte Of Python which you can also download from that link(you have to scroll down quite a bit to find the download link) , or read HERE

I hope that you find success in your future python endeavors. You can do a lot with Python, just don't give up and stick with it!

8

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Nov 10 '16

I definitely recommend the former, which got me into programming. :p

5

u/robscomputer Nov 11 '16

I own both books and preordered them as I was pretty excited based on the chapters, this was through No Starch Press (but Automate the Boring Stuff is CC and available freely).

Summary of Automate the Borning Stuff

I read this book a few months ago so my summary might be off on the details slightly.

The core theme of the book is how to use programming (Python3) to automate your daily tasks. This is arranged by chapters that focus on core Python, then web, spreadsheets and other subjects commonly used in a work or personal environment.

When I first read about this book, it was pretty interesting take on the whole idea of getting someone started with programming. By focusing on making a useful program instead of something that uses your Python experience, you can use the tools faster in your actual work.

The skill level of the book is very beginner, and the depth of Python stops IMHO just before object oriented and using classes. Overall I think this book is written in typical Al Sweigart fashion, very easy to read and offers lots of simple to understand examples.

My only issue with this book is the amount of focus starts on Python3 core skills but tapers off to the use of Python modules. This is of course expected, but I felt like you never fully understand how to use these modules, instead it's more an example how to use certain modules. For example, instead of having a chapter dedicated to the web modules (requests, etc), there should be a chapter defining how does a module work, how to find the methods to use, installing it manually vs PIP. This might help keep the shelf life of the book longer as well since many modules could become defunct over time or change from the working code in the book examples.

Summary of Python Crash Course

I am currently reading this book, and have not completed it yet.

Compared to the Automate the Borning Stuff book, this book contains more pages and I felt it offers a slower ramp up time with learning Python core skills. It's important to note that Crash Course offers the code and examples primarily in Python3, but notes where Python2 may be different. This is great as many legacy systems are still on Python2. The book really focuses on Python core skills and what is surprising for a "beginner" book is the coverage of classes (often it's skipped) and testing (almost always this is skipped).

It's actually 11 chapters covering Python core, but I honestly felt this was well thought out. Personally for me, I learned more from these chapters as I found I was missing some of the core concepts of between data sets (using lists vs dictionaries) and the end exercises reinforce these ideas.

As for the project examples, I haven't reached these chapters yet, but the use of a simple game, data visualization and finally Django all sound like fun. If work wasn't in the way, I would have completed this book a while ago.

As a bonus, there are chapters defining how to use a text editor (author recommends Geany, pretty decent IDE), and also using Git.

In the end, I saw how this book focuses on more about building your Python core skills and then giving you example projects how these would work in real life. As a side note, the exercises were also on par for a beginner book, nothing too difficult and everything ramped up nicely. There was one chapter exercise that stood out, I found the answer on stack overflow, which another person said the exercise problem while could be solved in the manner describes, is not very Pythonic. So keep that in mind when running through the book.

Which and why?

If I had to give a reference for these books I would do the following. If you want to learn and use Python in your daily work, this Automate the Borning Stuff if the book for you. This is really driven quickly and even if you don't know how classes you should be able to have working code to accomplish 90% of your needs.

If you would like to understand Python to build larger projects or collaborate with co-workers/friends then I would recommend Python Crash Course. At a certain point, you will have to learn classes and how to import these, work with separate functions. Also understanding classes and how they work IMHO is one of the defining questions when I ask "do you know Python". It's between someone who writes a single script and someone who can write a full program. At work, I'm focusing on this book since I have to work with others who are writing Python in object oritented, and even if I don't know programming very well, I have to at least know where are the parent/child dependancies, and how to import these correctly.

But in the end, both books are written very well and I really enjoy owning both of them. Al is a great author and a huge proponent to open source books plus the Python community. While Eric has created any cheat sheets and community resources to go along with Python and his book.

Hope this helps!

1

u/unixbeard Nov 29 '16

I'm a bit late to the party, but this is a really helpful comment. Thank you!

4

u/thewiseswirl Nov 10 '16

Both. But I'd read the first half of the latter first...then move on to do the exercises in Automate and the second half of CC. Just a thought.

4

u/Xonshiz Xonshiz Nov 11 '16

Read both side by side. @EveybrowZing already mentioned why :D

3

u/raraneta Nov 11 '16

I'm reading both now at the same time and the concepts are clicking better for me.

2

u/digi0ps Nov 11 '16

I would recommend Automate the Boring Stuff. It pretty much show you he glimpse of everything but doesn't go to deep into it. This motivates you to research further on the topics that you are interested!