<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jon.geek.nz/index.php?action=history&amp;feed=atom&amp;title=Python</id>
	<title>Python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jon.geek.nz/index.php?action=history&amp;feed=atom&amp;title=Python"/>
	<link rel="alternate" type="text/html" href="https://wiki.jon.geek.nz/index.php?title=Python&amp;action=history"/>
	<updated>2026-05-14T04:40:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://wiki.jon.geek.nz/index.php?title=Python&amp;diff=1971&amp;oldid=prev</id>
		<title>Johnno: Created page with &quot;== What is programming? ==  Starting with Python, we can:  * Get your computer to solve problems so you don&#039;t have to. * Do data analysis, or maybe just add up a bunch of numb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jon.geek.nz/index.php?title=Python&amp;diff=1971&amp;oldid=prev"/>
		<updated>2014-06-19T05:33:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== What is programming? ==  Starting with Python, we can:  * Get your computer to solve problems so you don&amp;#039;t have to. * Do data analysis, or maybe just add up a bunch of numb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== What is programming? ==&lt;br /&gt;
&lt;br /&gt;
Starting with Python, we can:&lt;br /&gt;
&lt;br /&gt;
* Get your computer to solve problems so you don&amp;#039;t have to.&lt;br /&gt;
* Do data analysis, or maybe just add up a bunch of numbers.&lt;br /&gt;
* Write a video game.&lt;br /&gt;
* Manage your Open Stack clusters.&lt;br /&gt;
* Fetch your slippers, assuming your computer is controlling a robot.&lt;br /&gt;
&lt;br /&gt;
== Parts of a program ==&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a program:&lt;br /&gt;
&lt;br /&gt;
 from termcolor import colored&lt;br /&gt;
 &lt;br /&gt;
 total_eels = 10&lt;br /&gt;
 eels_in_hovercraft = 0&lt;br /&gt;
 &lt;br /&gt;
 print &amp;quot;My hovercraft is empty.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 while not raw_input(&amp;quot;Throw in an eel (Y/N)? &amp;quot;).lower() == &amp;#039;n&amp;#039;:&lt;br /&gt;
     eels_in_hovercraft = eels_in_hovercraft + 1&lt;br /&gt;
     if eels_in_hovercraft == total_eels:&lt;br /&gt;
         print &amp;quot;You have run out of eels!&amp;quot;&lt;br /&gt;
         break&lt;br /&gt;
 &lt;br /&gt;
 print &amp;quot;Eels in hovercraft: %s&amp;quot; % eels_in_hovercraft&lt;br /&gt;
 &lt;br /&gt;
 if eels_in_hovercraft &amp;gt; 5:&lt;br /&gt;
     print colored(&amp;quot;My hovercraft is full of eels!&amp;quot;, &amp;quot;green&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Tell the computer which bits of other people&amp;#039;s code you want to use:&lt;br /&gt;
&lt;br /&gt;
 from termcolor import colored&lt;br /&gt;
&lt;br /&gt;
Define some things that you want to use:&lt;br /&gt;
&lt;br /&gt;
 total_eels = 10&lt;br /&gt;
&lt;br /&gt;
Get the computer to do things - e.g. print something to the screen:&lt;br /&gt;
&lt;br /&gt;
 print &amp;quot;My hovercraft is empty.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Control when and how often your code is executed:&lt;br /&gt;
&lt;br /&gt;
 while raw_input(&amp;quot;Throw in an eel (Y/N)? &amp;quot;).lower() == &amp;#039;y&amp;#039;:&lt;br /&gt;
 ...&lt;br /&gt;
 if eels_in_hovercraft &amp;gt; 5:&lt;br /&gt;
&lt;br /&gt;
== TODO ==&lt;br /&gt;
&lt;br /&gt;
* http://www.codecademy.com/tracks/python&lt;br /&gt;
* http://www.learnpython.org/&lt;/div&gt;</summary>
		<author><name>Johnno</name></author>
	</entry>
</feed>