Python IDLE and Shell

Revision as of 13:17, 2 April 2012 by Lena siz (talk | contribs) (Created page with "Python IDLE and Shell are both ways of compiling Python scripts, and have quite different uses. This short tutorial explains how to use them. =Using IDLE= 1. Open your Terminal ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Python IDLE and Shell are both ways of compiling Python scripts, and have quite different uses. This short tutorial explains how to use them.

Using IDLE

1. Open your Terminal (on Ubutnu or Mac) or Windows Shell (on Windows). You should get a Window like this: Terminal.jpg

2. Type in Python to enter the IDLE mode: PythonIDLE.jpg

3. Now you can paste in your code, starting at a new prompt(">>>"). Press Ctrl-Z when you want to quit: IDLEUSE.jpg


Benefits

Benefits of IDLE

  • Compile short bits of code
  • Don't need to re-save
  • Test your ideas out

Benefits of Shell

  • Test longer scripts
  • Save well developed programs for later
  • Easily manipulate indentation