Sunday, August 8, 2010

Learn Python The Hard Way

SkyHi @ Sunday, August 08, 2010

This is the site for the book "Learn Python The Hard Way". The book is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up their skills before starting a more detailed book.

For Learners

You can download the book here:

The book is very simple:

  • 52 exercises in all.
  • 26 cover just input/output, variables, and functions.
  • 26 cover logic (boolean algebra, if-statements, while-loops, etc.)

Each exercise is one or two pages and follows the exact same format. You type each one in (no copy-paste!), make it run, do the extra credit, and then move on. If you get stuck, at least type it in and skip the extra credit for later.

Other Books

You might also want to check out these other books if you find this book too boring or annoying:

For Potential Contributors

The book is currently a work in progress, but I'm looking for people to contribute proposed lessons using this wiki. You can also submit tickets with errors you find.

This repository is also available as a fossil repository. Fossil is a distributed version control that includes the wiki, tickets, source, and everything you need to get the whole site. You can use fossil to grab the whole thing and access it offline and contribute to the book.

Writing Proposed Exercises

Use this wiki to start writing your own exercises. You should get the latest version of the book and read it. You should then try the exercises yourself so you get a feel for them.

Next you just write an exercise on the Proposed Exercises page. Just add your exercise as a bullet point with a link and then write it. I leave it to you to figure out how to find the wiki formatting and make the page. If you can't then you probably shouldn't be writing exercises right now.

Finally, make sure your name is on the Exercise so that we know who to for its creation.