|
|||||||||||
|
Re: have to learn python
From: Douglas Allan Tutty <dtutty(at)porchlight.ca>
Date: Thu Jun 28 2007 - 22:43:24 EDT
I only program in Python and Fortran. I get it working in Python and then anything that takes a while to run I then redo in Fortran. I did a lot of that on my 486; I don't bother on my Athlon64. :) The packages: python, python-doc, and diveintopython, along with vim-python, python-examples will give you a great start and perhaps all you need. In addition, on the python.org web site you'll find, under documentation, some things that don't come in the debian packages. Look at Python Enhancement Proposal (PEP) 9 which is a style guide for python code. Another great book is "How to think like a computer scientist: Python Version" by Allen Downey, Jeffrey Elkner, and Chris Meyers. While you may know the concepts behind the book, it uses python to illustrate those concepts so you'll see how python works. If someone who hasn't seen python before is presented with it (as happens from time to time here), they often ask "is this psudocode"? It really is simple with none of the pesky punctuation of C (no braces, no semicolons, etc). The testing and looping is clear and easy. Basically, I only use sh for things like dos bat files; for anything with testing and looping I go to python. If you like one-liners like perlisms, you _can_ do that but you have to work at it. Python really wants things laid out in a clear and easy to read form. Enjoy. Doug. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Thu Jun 28 22:43:55 2007 This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 22:50:03 EDT |
||||||||||
|
|||||||||||