Pages

Subscribe:

Kamis, 18 Agustus 2011

Know the Python Programming Language

For my starter is still my kayak on the python programming language follows some explanation in a nutshell:

1. The introduction of Python programming language

Quote:
Python is a high-level programming language for various purposes, specificallydesigned to easily read, understood, and used. Python is a scripting language issimple but powerful with a syntax very elegant and beautiful is no less beautiful withRuby.
In addition to the programming language is extensible cool is my nature, and a lot ofmy librarynya module and can be used as needed us.



2. Writing style syntax (coding convention)

If you are a programmer I'm used to programming languages ​​C, C + +, Java et al.may be little surprise, because the rules written in the Python syntax is very different from most programming languages ​​using the delimiter of the block, for example in theprogramming languages ​​C, C + +, and Java delimiter block using curly brackets'{}',example:

int main (int argc, char ** argv)
{
return 0;
}

Similarly, in procedural programming languages​​, like Delphi, using BEGIN and ENDblocks.

While Python uses indentation blocks I usually use a tab as delimiternya, for example:
Code:
def main ():
     return 0

can not be written:
Code:
def main ():
     return 0

Tidak ada komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...