Category:Python: Difference between revisions

Content added Content deleted
m (Changed over to language header)
m (Grammar)
Line 4: Line 4:
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 example 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 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:
<pre>
<pre>
print 'this line must not have leading indentation!'
print 'this line must not have leading indentation!'