Think about when you were learning to speak a foreign language. Before you could comfortably speak anything intelligible, you had to plow through vocabulary lists and grammar concepts.
While Python is a programming language, if you approach the language like any traditional language, you'll have the right mindset. The exercises we will be performing may seem, at first glance, to be elementary and boorish, but if this is your first time programming you will probably find the exercises to be somewhat challenging. (They'll probably still be a bit boorish! ha)
To program with Python (like most programming languages), you'll write to your computer and it will write back. This back-and-forth of writing is called programming, or just coding. It's how we talk with computers to make them do stuff, and for them to tell us neat stuff in return. From personal experience, when I first started learning to code, I struggled for a long time, in part because I got frustrated with how explicit you must be in your writing. [1] If you're used to writing fluffy poetry, writing code is the direct opposite. Yet, just as well-composed poetry can be beautiful, well-crafted code can be elegant. Ah, sweet mystery of life, now that I have found you.
Moving on...
Lets introduce you to Python. These are the steps to perform to get your computer set up. For today, we will use the Enthought Canopy package. [2] Follow these instructions as exactly as possible.
On my computer, one window appears. It is a welcome screen and shows this:
Click the Editor button. The Editor window will appear:
Click Create a new file.
On my computer, one window appears. It is a welcome screen and shows this:
Click the Editor button. The Editor window will appear:
Click Create a new file.
There are many flavors of Linux with a multitude of installation options. If you're using Linux you are probably comfortable with how to install packages. The general approach is to:
[1] | That's a double entendre! |
[2] | While OSX comes with Python already, it doesn't have some extra stuff like graph-making abilities, so we are going to use the Enthought Python distribution to get up and running more easily. |