<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Writing_Python_Programs</id>
	<title>Writing Python Programs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Writing_Python_Programs"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Writing_Python_Programs&amp;action=history"/>
	<updated>2026-05-14T01:13:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Writing_Python_Programs&amp;diff=9262&amp;oldid=prev</id>
		<title>Kristian Rother: Created page with &quot;{{Cat|Python Reference}} {{Python Links}}  == Essentials == * All program files should have the extension &lt;source lang=&quot;python&quot;&gt;.py &lt;/source&gt; * When developing on Unix, the fi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Writing_Python_Programs&amp;diff=9262&amp;oldid=prev"/>
		<updated>2013-02-07T23:55:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Cat|Python Reference}} {{Python Links}}  == Essentials == * All program files should have the extension &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;.py &amp;lt;/source&amp;gt; * When developing on Unix, the fi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Python Reference}}&lt;br /&gt;
{{Python Links}}&lt;br /&gt;
&lt;br /&gt;
== Essentials ==&lt;br /&gt;
* All program files should have the extension &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;.py &amp;lt;/source&amp;gt;&lt;br /&gt;
* When developing on Unix, the first line in each Python program should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin env python&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Indentation is a central element of Python syntax, marking code blocks. Code blocks should be indented by four spaces/one tab.&lt;br /&gt;
* Indentation must not be used for decorative purposes.&lt;br /&gt;
&lt;br /&gt;
Only one command per line is allowed.&lt;br /&gt;
&lt;br /&gt;
== What Python does not have ==&lt;br /&gt;
* Memory allocation.&lt;br /&gt;
* Declaration of variables and types.&lt;br /&gt;
* Strict object-orientation.&lt;br /&gt;
* Line numbers.&lt;br /&gt;
== Commenting code ==&lt;br /&gt;
* In Python, single lines can be commented by the hash symbol:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# this is a comment.&lt;br /&gt;
&lt;br /&gt;
print a + b # adding the variables.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Also, multi-line comments can be enclosed by triple quotes:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
”””&lt;br /&gt;
This is some longer descriptions&lt;br /&gt;
that stretches over multiple lines.&lt;br /&gt;
”””&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* The triple quoted comments can be used to generate documentation automatically.&lt;/div&gt;</summary>
		<author><name>Kristian Rother</name></author>
	</entry>
</feed>