Differences between revisions 12 and 16 (spanning 4 versions)
Revision 12 as of 2022-05-02 15:40:39
Size: 794
Comment:
Revision 16 as of 2022-12-29 19:25:02
Size: 1427
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''Python programming language''' is an interpreted, duck-typed language.
Line 4: Line 6:

----



== 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
}}}
Line 20: Line 53:
 * [[Python/MoinMoin|MoinMoin]]
 * [[Python/Flask|Flask]]
 * [[Python/Gunicorn|Gunicorn]]
Line 21: Line 57:
 * [[Python/MoinMoin|MoinMoin]]  * [[Python/Werkzeug|Werkzeug]]
Line 32: Line 68:
== Libraries ==

 * [[Python/Codecs|Codecs]]


Line 34: Line 76:
 * [[Python/HtmlParser|html.parser (HTML)]]
 * [[Python/BeautifulSoup|Beautiful Soup (HTML)]]
Line 35: Line 79:
 * [[Python/HtmlParser|html.parser (HTML)]]

Python

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


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

Libraries

Parsers

Creating Libraries


CategoryRicottone

Python (last edited 2025-12-23 05:22:18 by DominicRicottone)