Python: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
http://imgs.xkcd.com/comics/python.png
Python is a scripting language written by Guido van Rossom.
Python is a scripting language written by Guido van Rossom.


The name actually refers to Monty Python, the charmingly irreverent and absurdist comedy troupe, as opposed to venomous snake.
The name actually refers to Monty Python, the charmingly irreverent and absurdist comedy troupe, as opposed to venomous snake.


== Website ==
== General ==


* http://www.python.org
* http://www.python.org
* [http://www.python.org/docs "official" documentation]
* [http://www.python.org/docs "official" documentation]
* [http://www.oreillynet.com/pub/a/womenintech/2007/09/11/charming-pythonistas.html Charming Pythonistas], an article about why Python makes a good learning language, and in particular considers the underrepresentation of female programmers


== Learning Python ==
== Learning Python ==


* [http://www.greenteapress.com/thinkpython/ How to Think Like a (Python) Programmer]
* [https://greenteapress.com/wp/think-python-2e/ Think Python]
:The "official" course textbook
Has been used in the course as a textbook
* http://hetland.org/writing/instant-hacking.html
 
:A nice quick intro to programming with Python as the specific language.
* [http://hetland.org/writing/instant-hacking.html Instant Hacking]
* http://www.diveintopython.org/
 
:Another good, free, resource
A nice quick intro to programming with Python as the specific language.
 
* http://www.diveintopython3.net/
 
Another good, free, resource, by Mark Pilgrim
 
* http://www.oreillynet.com/pub/a/womenintech/2007/09/11/charming-pythonistas.html
* http://www.oreillynet.com/pub/a/womenintech/2007/09/11/charming-pythonistas.html
:Interesting discussion about the merits of Python as a learning language, and the "gender gap" in programming
 
Interesting discussion about the merits of Python as a learning language, and the "gender gap" in programming
 
* A Python [http://www.addedbytes.com/download/python-cheat-sheet-v1/pdf/ "Cheat Sheet"] -- hmmm, might it not be a good project to be able to generate your own "cheat sheets"?


== Useful Add-ons (Libraries) ==
== Useful Add-ons (Libraries) ==
Line 23: Line 35:
* [[PythonImageLibrary]] (PIL)
* [[PythonImageLibrary]] (PIL)
* [[PythonFeedparser|feedparser]]
* [[PythonFeedparser|feedparser]]
== Applications that use/support Python plugins/extensions ==
* [[wikipedia:GIMP|GIMP]] has [http://www.gimp.org/docs/python/index.html GIMP-python] to allow python plugins
* [[wikipedia:Inkscape|Inkscape]] can use any language [http://wiki.inkscape.org/wiki/index.php/Script_extensions scripts], including [http://wiki.inkscape.org/wiki/index.php/PythonEffectTutorial Python], as filters (or "effects")
* [[wikipedia:Blender (software)|Blender]] has an [http://wiki.blender.org/index.php/Doc:Manual/Extensions/Python embedded Python interpreter]
* [[wikipedia:Dia (software)|Dia]] via a [http://projects.gnome.org/dia/python.html python plugin]
* [[Scribus]] has a [http://wiki.scribus.net/canvas/Category:Scripts scripting API that uses Python]
== Visualisations of python code ==
* Syntax: Showing a parse tree: https://vpyast.appspot.com/ [https://github.com/ivan111/vpyast code]
* [http://www.pythontutor.com/visualize.html#mode=display Execution frames] also [https://cscircles.cemc.uwaterloo.ca/visualize#mode=display same thing?]
==Saving Python code in the wiki==
You can insert Python code in a wiki page with syntax highlighting in this way:
<nowiki><source lang="python"></source></nowiki>
So for example:
<nowiki><source lang="python">
print("Enter your name:")
x = input() # waiting for input
print("Hello, " + x)
</source></nowiki>
renders as:
<source lang="python">
print("Enter your name:")
x = input() # waiting for input
print("Hello, " + x)
</source>
[[Category:Python]]

Latest revision as of 11:36, 6 October 2020

python.png

Python is a scripting language written by Guido van Rossom.

The name actually refers to Monty Python, the charmingly irreverent and absurdist comedy troupe, as opposed to venomous snake.

General

  • Charming Pythonistas, an article about why Python makes a good learning language, and in particular considers the underrepresentation of female programmers

Learning Python

Has been used in the course as a textbook

A nice quick intro to programming with Python as the specific language.

Another good, free, resource, by Mark Pilgrim

Interesting discussion about the merits of Python as a learning language, and the "gender gap" in programming

  • A Python "Cheat Sheet" -- hmmm, might it not be a good project to be able to generate your own "cheat sheets"?

Useful Add-ons (Libraries)

Applications that use/support Python plugins/extensions

Visualisations of python code

Saving Python code in the wiki

You can insert Python code in a wiki page with syntax highlighting in this way:

<source lang="python"></source>

So for example:

<source lang="python">
 print("Enter your name:")
 x = input() # waiting for input
 print("Hello, " + x)
 </source>

renders as:

print("Enter your name:")
x = input() # waiting for input
print("Hello, " + x)