Python
  Home arrow Python arrow Python 101 (part 1): Snake Eyes
FaxWave - Free Trial.
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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: 4 stars4 stars4 stars4 stars4 stars / 14
    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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Networking among IT Professionals. Learn more

    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

    - SSH with Twisted
    - Mobile Programming in Python using PyS60: UI...
    - Python: Count on It
    - Python Strings: Spinning Yarns
    - Python: More Fun with Strings
    - Python: Stringing You Along
    - Python Operators
    - Bluetooth Programming in Python: Network Pro...
    - Python Sets
    - Python Conditionals, Lists, Dictionaries, an...
    - Python: Input and Variables
    - Introduction to Python Programming
    - Mobile Programming in Python using PyS60: Ge...
    - Bluetooth Programming using Python
    - Finishing the PyMailGUI Client: User Help To...

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway