Introduction to Python

 
Post new topic   Reply to topic    Web Design Forum :: Python Programming
View previous topic :: View next topic  
Author Message
sangeeta1



Joined: 09 Aug 2007
Posts: 6

PostPosted: Thu Aug 09, 2007 8:40 am    Post subject: Introduction to Python Reply with quote
Python was designed to be a highly readable language. It uses English keywords frequently where other languages use punctuation.Python uses indentation/whitespace, rather than curly braces or keywords, to delimit statement blocks. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block. Python's statements include:

* The if statement, which conditionally executes a block of code, along with else and elif (a contraction of else-if).
* The while statement, which runs a block of code until a condition is False.
* The for statement, which iterates over an iterable, capturing each element to a local variable for use by the attached block.
* The class statement, which executes a block of code and attaches its local namespace to a class, for use in object oriented programming.
* The def statement, which defines a function.
Back to top
View user's profile Send private message
Jenniferlinn



Joined: 24 Dec 2008
Posts: 23
Location: UK

PostPosted: Wed Dec 31, 2008 8:42 am    Post subject: Reply with quote
here are some more details about the topic:

Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code.

Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. Python has also been ported to the Java and .NET virtual machines.

Python is distributed under an OSI-approved open source license that makes it free to use, even for commercial products.

Features

Some of the major changes scheduled for Python 3.0 were:

* Changing print so that it is a built-in function, not a statement. This made it easier to change a module to use a different print function, as well as making the syntax more regular. In Python 2.6 this could be enabled by entering from __future__ import print_function.[18]
* Moving reduce (but not map or filter) out of the built-in namespace and into functools (the rationale being that operations using reduce are expressed more clearly using an accumulation loop);[19]
* Adding support for optional function annotations that can be used for informal type declarations or other purposes;[20]
* Unifying the str/unicode types, representing text, and introducing a separate immutable bytes type; and a mostly corresponding mutable bytearray type, both of which represent arrays of bytes;[21]
* Removing backward-compatibility features, including old-style classes, integer-truncating division, string exceptions, and implicit relative imports.
_________________
UK Calling Cards
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Web Design Forum :: Python Programming All times are GMT
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpbb