Running and Quitting

Overview

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

Objectives
  • Run the ipython command prompt.

  • Write a python file.

  • Execute a python file, both in the script and out.

Running an ipython session

$ ipython

and you should see a prompt like this, but more colorful:

Python 3.6.6 (default, Sep 19 2018, 12:51:03)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help. 

In [1]: 

Creating an executable python file

Key Points

  • Python scripts are plain text files.

  • Use the ipython for editing and running Python.