(19 ratings)   
By: David Kuhlman
Python is a high-level general purpose programming language. Because code is automatically compiled to byte code and executed, Python is suitable for use as a scripting language, Web application implementation language, etc. Because Python can be...
Added: 02 June 2008    Views: 78  
PathComputers    Programming    Python
Keywords: computers   python   programming   code   coder   language   coding   introduction  
Do you like this tutorial? Now you can support our team to add more :     
 
 
 

Python is a high-level general purpose programming language. Because code is automatically compiled to byte code and executed, Python is suitable for use as a scripting language, Web application implementation language, etc. Because Python can be extended in C and C++, Python can provide the speed needed for even compute intensive tasks.

Important Features of Python

  • Built-in high level data types: strings, lists, dictionaries, etc.
  • The usual control structures: if, if-else, if-elif-else, while, plus a powerful collection iterator (for).
  • Multiple levels of organizational structure: functions, classes, modules, and packages. These assist in organizing code. An excellent and large example is the Python standard library.
  • Compile on the fly to byte code -- Source code is compiled to byte code without a separate compile step. Source code modules can also be "pre-compiled" to byte code files.
  • Extensions in C and C++ -- Extension modules and extension types can be written by hand. There are also tools that help with this, for example, SWIG, sip, Pyrex.

Some things you will need to know:

  • Python uses indentation to show block structure. Indent one level to show the beginning of a block. Out-dent one level to show the end of a block. As an example, the following C-style code:
    if (x)

    {

    if (y)

    {

    f1()

    }

    f2()

    }

    in Python would be:

    if x:

    if y:

    f1()

    f2()

    And, the convention is to use four spaces (and no tabs) for each level of indentation.

Where to Go For Additional help

About the Author :
Visit : www.rexx.com
Python 101 -- Introduction to Python
Articles and Tutorials Directory by www.learnfobia.com
 Rate this tutorial : Rate 1Rate 2Rate 3Rate 4Rate 5
  |    Add to Favorites
  |    Send to Friend
  |    Print
Comments