Running and Quitting

Overview

Teaching: 15 min
Exercises: 0 min
Questions
  • How can I run Python programs?

Objectives
  • Launch the Python shell.

  • Launch the IPython shell.

  • Launch IDLE in interactive mode.

  • Launch IDLE, create a Python script, and run it.

Setup

Evaluate Python statements interactively

With vanilla Python shell

With enhanced IPython shell

With IDLE

Python programs are plain text files.

Use IDLE for editing and running Python.

Key Points

  • python, ipython and idle commands all give an interactive Python shell (REPL).

  • Python programs are plain text files.

  • You can use IDLE for creating and running Python programs.