Category:Python: Difference between revisions

m
whitespace
(ruby?)
m (whitespace)
Line 8:
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.
 
Note: because Python uses whitespace for structure, do not format long code examples with leading whitespace, instead use <code><nowiki><pre></pre></nowiki></code> tags, or, preferably, <code><nowiki><lang python></lang></nowiki></code> tags. This will make it easier to copy code into and out of the wiki. Example:
<lang python>print 'this line must not have leading indentation!'
<lang python>
print 'this line must not have leading indentation!'
if True:
print 'example: ', foo(3), len(bar)</lang>
</lang>
 
==See Also==
Anonymous user