News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Python basics for PHP developers
February 16, 2010 @ 15:05:28

On the IBM developerWorks site there's a recent article looking to help PHP developers bridge the gap to Python by teaching some of the beginning steps in this other, different sort of language.

This article gives you a bit of exposure to Python. It assumes that you have no knowledge of that programming language, so some of what you read here might seem a bit basic. It focuses on comparing and contrasting Python with PHP - not because one language is better than the other but because of a simple truth: It's often easier to learn new things by referring back to something you already know.

They start off by introducing the language and talking about the differences between them including the differing syntax, Python's concept of mutability/immutability and the non-positional argument handling. From there, it's all about the basics - making a sample script, using loops, working with strings, conditionals, lists and dictionaries. A full sample script shows you how to pull it all together to pull in a list of files and outputs basic information about them.

0 comments voice your opinion now!
python introduction tutorial


blog comments powered by Disqus

Similar Posts

Re-Cycled Air Blog: PHP Dark Arts: Daemonizing a Process

PHPMaster.com: Inversion of Control - The Hollywood Principle

IBM developerWorks: Building the DB2 Health Monitor Sample Application for PHP (Part 2)

Michelangelo van Dam's Blog: Zend Framework context switching for HTML content

Kevin Schroeder's Blog: What to make of TIOBE's PHP results


Community Events

Don't see your event here?
Let us know!


version podcast laravel symfony2 series xdebug voicesoftheelephpant framework opinion api introduction php7 performance example release conference community interview library extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework