Learning Python now coming from Perl

News123 news123 at free.fr
Sat Dec 6 19:23:38 CET 2008


I fully agree with Roy's answer.

COding small tasks is a good starting point. For quite some time you'll
be of course less efficient than with your previous language, but that's
part of the learning curve, isn't it.

I guess you'll learn the syntax rather quickly.
What's more painful is to learn which functianilty is in which library
and which library exists.

There's of course a lot of online documentation, but often you find
answers to trivial python questions fastest with Google:
for example:  search for something like "python string reverse example"

And there's of course this newsgroup whenever you're stuck with a
'missing' feature, (though mostly the features aren't missing, but just
a little different)


bye

N


Roy Smith wrote:
> In article <ghdt15$6e7$1 at news.motzarella.org>,
>  Bertilo Wennergren <bertilow at gmail.com> wrote:
> 
>> I'm planning to start learning Python now, using Python 3000.
>> I have no previous Python skills,
>> . . . 
> 
> I assume you use Perl to solve real problems in whatever job you do.  My 
> recommendation would be the next time some problem comes up that you would 
> normally solve with Perl, try doing it in Python.  Having a real task that 
> you need to accomplish is a great way to focus the mind.  For your first 
> project, pick something that's small enough that you think you could tackle 
> it in under 50 lines of Perl.
> 
> One of the very first things you'll probably discover that's different 
> between Perl and Python is how they handle string pattern matching.  In 
> Perl, it's a built in part of the language syntax.  In Python, you use the 
> re module.  The regular expressions themselves are the same, but the 
> mechanism you use to apply them to input text is quite different.



More information about the Python-list mailing list