Differences between revisions 31 and 33 (spanning 2 versions)
Revision 31 as of 2023-01-09 03:33:03
Size: 3921
Comment:
Revision 33 as of 2023-01-13 06:07:51
Size: 4198
Comment:
Deletions are marked like this. Additions are marked like this.
Line 79: Line 79:
 * [[Python/StringMethods|String methods]]
Line 185: Line 186:
----



== See also ==

[[https://docs.python.org/3/reference/index.html|The Python Language Reference]]

[[https://docs.python.org/3/library/index.html|The Python Standard Library]], the standard library reference manual

Python

The Python programming language is an interpreted, duck-typed language.

On most platforms, the interpreter is called by python(1). Some platforms distribute with version suffixes that may or may not be optional. The py(1) launcher is also available.


Example

A hello world program looks like:

def main():
    print("Hello, world")

if __name__ == "__main__":
    main()

If using Python 2, the print command is instead a statement.

print "Hello, world"

To run the program, try:

python hello.py
# or
chmod 755 hello.py
./hello.py


Tool chain

Applications and Servers

Language

Parser Modules and Classes

This is a mixture of standard library modules and third-party modules.

Configuration Files

JSON

HTML

PDF

TOML

XML

Standard Library Modules

Third-Party Modules

Creating Libraries


See also

The Python Language Reference

The Python Standard Library, the standard library reference manual


CategoryRicottone

Python (last edited 2025-04-08 14:54:56 by DominicRicottone)