Going through Python and Ruby with Zed Shaw

Tiffany White,

You remember when I said I was going to do The Odin Project and Codecademy? Well, I have an even better solution. First off, let me say that learning HTML and CSS all day is great if you want to do web dev and that is what I want to do, maybe. I am finding that building apps and scripts is fun. The reason I am doing Python now is because of my Raspberry Pi. I wanted to program it this summer and I know very little Python so I looked for a good alternative to the Codecademy Python course which was just a fragmented bit of Python learning. I wasn’t grasping the concepts, nor was I being asked to think about the things I was learning.

So I remembered fro Code Newbie Podcast Zed Shaw. He had written a book called Learn Python the Hard Way and offered it up for free as HTML on the book’s website. So I went. And I started. And I’m hooked.

So what made it great? Study Drills. Enforcing the fact that you should type everything on the screen, use a text editor and not an IDE (which I was really tempted to do) and the questions he answers from previous students. You get to practice what you learn, to, by building little scripts on your own. Here is an example of a form script I wrote using Python, from exercise 11 Study Drill:

Learned so far:

Format variables like %r can input data within a string. You can call format variables later in a string, by using:

As you can see, I assigned a variable before using the print command, called those same variables later in subsequent strings by using format variables.

Another thing learned:


This won’t format the user input as Python code and is used as a promt. So if you look about on the form I made, when run in terminal:

You can see it prompts the user. Cool, huh?

This tutorial out of all the ones I’ve tried is really building my confidence. Here’s to more late nights in the trenches.

© tiff.RSS