Category:Python: Difference between revisions

Content added Content deleted
m (Grammar)
m (Spelling/grammar/aesthetics)
Line 1: Line 1:
{{language|Python}}From the official [http://www.python.org Python] web-site "Python is a dynamic object-oriented programming language that can be used for many kinds of software development."
{{language|Python}}From the official [http://www.python.org Python] website: "Python is a dynamic object-oriented programming language that can be used for many kinds of software development."


Python is very readable and easy to create clean bug-free programs due to the motto: "Errors should never pass silently."
It is easy to create clean bug-free programs in Python due to the motto: "Errors should never pass silently." Python source files (.py files) are typically compiled to an intermediate bytecode language (.pyc files) and executed by a Python Virtual Machine.
Python source files (.py files) are typically compiled to an intermediate bytecode language (.pyc files) and executed by a Python Virtual Machine.


Note: because Python use whitespace for structure, do not format long code examples with leading whitespace, but use <nowiki><pre></pre></nowiki> tags. This will make it easier to copy tested code into the wiki, and copying code out of the wiki. Example:
Note: because Python uses whitespace for structure, do not format long code examples with leading whitespace, instead use <nowiki><pre></pre></nowiki> tags. This will make it easier to copy code into and out of the wiki. Example:
<pre>
<pre>
print 'this line must not have leading indentation!'
print 'this line must not have leading indentation!'