Python
  Home arrow Python arrow Python 101 (part 1): Snake Eyes
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PYTHON

Python 101 (part 1): Snake Eyes
By: Vikram Vaswani, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 15
    2001-05-29


    Table of Contents:
  • Python 101 (part 1): Snake Eyes
  • The Jedi Master Speaks
  • Start It Up
  • Dissecting A Python...Program
  • Milk And Toast And Honey
  • Adding Things Up

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Python 101 (part 1): Snake Eyes
    ( Page 1 of 6 )

    Known for its power, flexibility and elegance - much like its namesake - Python is one of the most interesting programming languages around. In this introductory tutorial, find out how learning Python will earn you respect, affection and bags of money. Oh yeah...you might also learn a little bit about the origins, features and syntactical rules of the language.Perhaps it's just my imagination, but Python programmers seem to command a great deal more respect than their Perl or PHP counterparts.

    In the consciously-elitist world of software engineering, a developer with a few years of Python under his belt gets the best cubicle, the prettiest girl and the respect of his neighbours; people move out of the way when he strides down the hall, and colleagues turn to him for creative and elegant solutions to the problems they encounter. Walk into a job interview and mention Python when reciting your qualifications; you'll immediately see a glint of recognition in the interviewer's eyes, an awareness that, in the hierarchy of software developers, you're one of the top guns.

    I'm exaggerating a little, of course. However, the fact remains that Python, by its very nature, forces most developers to acquire an understanding of object-oriented programming concepts and, by implication, design software that is reusable, extensible and modular. In the long run, this translates into better software engineering, greater code maintainability and less testing - all of which are music to the ears of the average manager.

    Over the next few weeks, I'm going to take you on a guided tour of this powerful programming language, and demonstrate some of its capabilities to you. I'll be covering everything you need to know to get started with Python, from using the command-line and understanding Python's data structures, to trapping errors and writing your own Python modules.

    If you already know Perl, PHP or Java, many of the concepts explained here may already be familiar to you; however, Python, like its namesake, does add some interesting twists to standard programming constructs, and I'll be sure to point them out to you. If, on the other hand, you're completely new to this, fear not - I'll keep it as simple and non-threatening as I can.{mospagebreak title=A Reptile By Any Other Name} If you look at a dictionary, a python is defined as "a large snake that crushes its victims."

    Python's own Web site, http://www.python.org/, is even more specific:

    python, (Gr. Myth. An enormous serpent that lurked in the cave of Mount Parnassus and was slain by Apollo)

    1. any of a genus of large, non-poisonous snakes of Asia, Africa and Australia that suffocate their prey to death.

    2. popularly, any large snake that crushes its prey.

    3. totally awesome, bitchin' language that will someday crush the $'s out of certain other so-called VHLL's ;-)

    The brainchild of Guido van Rossum, Python is a powerful and flexible programming language built on strong object-oriented fundamentals. By combining the usability of scripting languages (like Perl and PHP) with the rich feature set of traditional languages (like C++ and Java), it offers an irresistible combination of speed and power. Originally developed in 1989 as part of the Amoeba Project at CWI in the Netherlands, it was released to the user community as freeware, and has become a popular language for high-level application development over the past decade.

    In fact, Python's clean syntax and object-oriented framework has helped make it popular among an A-list of "customers", including CNRI, Xerox PARC, Red Hat and Australia's Melbourne Cricket Ground.

     
     
    >>> More Python Articles          >>> More By Vikram Vaswani, (c) Melonfire
     

       

    PYTHON ARTICLES

    - Tuples and Other Python Object Types
    - The Dictionary Python Object Type
    - String and List Python Object Types
    - Introducing Python Object Types
    - Mobile Programming using PyS60: Advanced UI ...
    - Nested Functions in Python
    - Python Parameters, Functions and Arguments
    - Python Statements and Functions
    - Statements and Iterators in Python
    - Sequences and Sets in Python
    - Python Expressions and Operators
    - Dictionaries, Variables and Statements in Py...
    - Data Types in Python
    - The Python Language
    - SSH with Twisted





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT