Day 20: Scratch vs. Python

I’m borrowing a lot of ideas from Dan Anderson’s Computer Science course, and one of the things I really like about his approach is how he’s introducing students to a number of different languages, and through this, helping students to see the strengths and weaknesses of individual languages.

After playing with Lightbot, an admittedly extremely limited language, students were pretty pleased by the flexibility of scratch, which lets them string together an unlimited number of commands and has a far greater palette of commands to choose from. But, we’ve also been recently bumping up against the limitations of scratch, as we most recently saw when trying to implement a simple factorial program via livecoding (an awesome idea from Mark Guzdial). The left side is a solution in scratch, and the right side is the same program in Python.

Screen Shot 2014 09 24 at 9 47 35 PM

Students were impressed by the brevity, readability, and intuitiveness of the pythonic approach. One student even recognized recursion from Lightbot, and they sort of laughed at my favorite XKCD Python cartoon.


About John Burk

The ramblings of a physics teacher.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s