Anonymous user
Category:Python: Difference between revisions
m
port the example to python 3
m (port the example to python 3) |
|||
Line 15:
===Notes===
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
if True:
print
Some Python examples may deviate from idiomatic Python because they may be written to work in Python 3.X as well as Python 2.X environments. This includes doing things like:
|