<?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=The_Python_Command_Line_%28CLI%29</id>
	<title>The Python Command Line (CLI) - 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=The_Python_Command_Line_%28CLI%29"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=The_Python_Command_Line_(CLI)&amp;action=history"/>
	<updated>2026-05-14T01:18:43Z</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=The_Python_Command_Line_(CLI)&amp;diff=9261&amp;oldid=prev</id>
		<title>Kristian Rother: /* Overview */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=The_Python_Command_Line_(CLI)&amp;diff=9261&amp;oldid=prev"/>
		<updated>2013-02-07T23:49:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview&lt;/span&gt;&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;
== Overview ==&lt;br /&gt;
* You can use any Python command from the interactive Python command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; print 4**2&lt;br /&gt;
16&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; a = &amp;#039;blue&amp;#039;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; print a&lt;br /&gt;
blue&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Everything works in exactly the same way as it would in a program.&lt;br /&gt;
* You can define code blocks by writing extra lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; for i in range(3):&lt;br /&gt;
…&lt;br /&gt;
print i&lt;br /&gt;
…&lt;br /&gt;
0&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
* You can leave the command line by Ctrl-Z (Windows) or Ctrl-D (Linux).&lt;br /&gt;
* The CLI works great as a pocket calculator.&lt;br /&gt;
* Writing code blocks with 2+ lines in the CLI gets painful quickly.&lt;br /&gt;
* From IDLE, you can execute a program in the command line by pressing F5.&lt;br /&gt;
== More Info ==&lt;br /&gt;
An enhanced CLI with syntax highlighting and tab expansion is provided by the Ipython package (Windows/Linux/Mac) – http://ipython.scipy.org.&lt;/div&gt;</summary>
		<author><name>Kristian Rother</name></author>
	</entry>
</feed>