[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: have to learn python



On Thu, Jun 28, 2007 at 04:49:17PM +0100, abdelkader belahcene wrote:
> Hi,
> have I need to learn python, I know several interpreters (fro example
> bash scripting, ) and   laguages (php, C++,C..).
> I administrate servers on linux
> end developpe application at know using depending of course of type
> of application so from bash, to C, C++ ( graphical interface fltk) and
> php.
> 

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.




Reply to: