Category:Python: Difference between revisions
Content added Content deleted
(Update leading quote to match that of changed home site. (The mention of just object oriented di seem odd).) |
(PEP8) |
||
Line 17: | Line 17: | ||
:<lang python>print 'this line must not have leading indentation!' |
:<lang python>print 'this line must not have leading indentation!' |
||
if True: |
if True: |
||
print 'example: ', foo(3), len(bar)</lang> |
print 'example: ', foo(3), len(bar)</lang> |
||
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: |
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: |