Difference between revisions of "Python IDLE and Shell"
(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 ...") |
(→Using IDLE) |
||
Line 3: | Line 3: | ||
=Using IDLE= | =Using IDLE= | ||
1. Open your Terminal (on Ubutnu or Mac) or Windows Shell (on Windows). You should get a Window like this: | 1. Open your Terminal (on Ubutnu or Mac) or Windows Shell (on Windows). You should get a Window like this: | ||
+ | |||
[[File:Terminal.jpg]] | [[File:Terminal.jpg]] | ||
2. Type in Python to enter the IDLE mode: | 2. Type in Python to enter the IDLE mode: | ||
+ | |||
[[File:pythonIDLE.jpg]] | [[File:pythonIDLE.jpg]] | ||
3. Now you can paste in your code, starting at a new prompt(">>>"). Press Ctrl-Z when you want to quit: | 3. Now you can paste in your code, starting at a new prompt(">>>"). Press Ctrl-Z when you want to quit: | ||
+ | |||
[[File:IDLEUSE.jpg]] | [[File:IDLEUSE.jpg]] | ||
− | |||
=Benefits= | =Benefits= |
Revision as of 12:18, 2 April 2012
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:
2. Type in Python to enter the IDLE mode:
3. Now you can paste in your code, starting at a new prompt(">>>"). Press Ctrl-Z when you want to quit:
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