On Mon, Jul 6, 2015 at 1:31 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
Guess I’ll have to get started with my Python studies!
I find a great place to start is the standard Python tutorial. It's
part of the standard documentation:
https://docs.python.org/3/tutorial/index.html
The above again assumes Python 3. (Replace the 3 in the URL with 2 for
Python 2.) If you're using Windows, you can also get the docs in the
usual .chm format by looking for "Python Manuals" in your Start menu.
Jon, I know you prefer to use a Mac as your personal computer; it will
almost certainly have come with Python 2 preinstalled. My
recommendation is to download and install the latest Python 3
(currently 3.4.3) for your own use. This is in part to better match
IBM's recently released Python, and in part because this way you are
less likely to inadvertently muck up the system Python (which is used
by the operating system itself as well as by some third-party
software).
Some tips specifically geared for Mac users is here:
https://docs.python.org/3/using/mac.html
You asked Buck for examples that aren't object-oriented. Well, Python
comes with a whole bunch of them. On Windows, the directory where
Python is installed (for Python 3.4.x, this is typically C:\Python34)
should have a Tools subdirectory. I don't have a Mac to verify this
myself, but I believe the corresponding place to look is
'/Applications/Python 3.4/Extras'.
These examples are meant to be both illustrative and actually
practical as tools. (Just as one example, there's a script called
rgrep.py which implements a "reverse grep".)
John Y.
As an Amazon Associate we earn from qualifying purchases.