Category:Python: Difference between revisions

From Rosetta Code
Content added Content deleted
(ruby?)
m (whitespace)
Line 8: 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.
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 <nowiki><pre></pre></nowiki> tags, or, preferably, <nowiki><lang python></lang></nowiki> tags. This will make it easier to copy code into and out of the wiki. Example:
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:
if True:
print 'example: ', foo(3), len(bar)
print 'example: ', foo(3), len(bar)</lang>
</lang>


==See Also==
==See Also==

Revision as of 05:43, 22 June 2009

Language
Python
This programming language may be used to instruct a computer to perform a task.
Garbage collected: Yes
Type safety: Safe
Type strength: Strong
Type expression: Implicit
Type checking: Dynamic
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Python.
Try this language on Codepad.

From the official Python website: "Python is a dynamic object-oriented programming language that can be used for many kinds of software development."

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 <pre></pre> tags, or, preferably, <lang python></lang> 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!' if True:

 print 'example: ', foo(3), len(bar)</lang>

See Also

Subcategories

This category has the following 18 subcategories, out of 18 total.

K

L

M

N

P

S

T

V

W

Pages in category "Python"

The following 200 pages are in this category, out of 1,513 total.

(previous page) (next page)

A

(previous page) (next page)