Differences between revisions 2 and 14 (spanning 12 versions)
Revision 2 as of 2021-11-11 22:18:06
Size: 275
Comment:
Revision 14 as of 2022-05-11 14:20:00
Size: 1280
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

The '''Python programming language''' is an interpreted, duck-typed language.
Line 9: Line 11:
== Programming paradigms == == Example ==
Line 11: Line 13:
 * [[Python/FunctionComposition|Function composition]] A hello world program looks like:
Line 13: Line 15:
{{{
def main():
    print("Hello, world")
Line 14: Line 19:
if __name__ == "__main__":
    main()
}}}
Line 15: Line 23:
== Librares == If using Python 2, the print command is instead a statement.
Line 17: Line 25:
{{{
print "Hello, world"
}}}

To run the program, try:

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

----
Line 22: Line 44:
 * [[Python/Installation|Installation]]
 * [[Python/Pip|pip]]
Line 27: Line 51:
== Applications and Servers ==

 * [[Python/UWSGI|uWSGI]]
 * [[Python/MoinMoin|MoinMoin]]



== Language ==

 * [[Python/FunctionComposition|Function composition]]
 * [[Python/DunderMethods|Dunder Methods]]



== Parsers ==

 * [[Python/HtmlParser|html.parser (HTML)]]
 * [[Python/BeautifulSoup|Beautiful Soup (HTML)]]
 * [[Python/Pdfminer|pdfminer (PDF)]]
 * [[Python/XmlSax|xml.sax (XML)]]
 * [[Python/XmlDomMinidom|xml.dom.minidom (XML)]]
 * [[Python/LxmlEtree|lxml.etree (XML)]]



== Creating Libraries ==

 * [[Python/DunderFiles|Dunder Files]]
 * [[Python/SetupFiles|Setup Files]]


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

Parsers

Creating Libraries


CategoryRicottone

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