python-for-physicists

A series of programming tutorials in Python aimed for physicists.

View the Project on GitHub Sampreet/python-for-physicists

M01T02 - The Python Interpreter

One for the Terminal!

← [Previous] M01T01 - Setting Up Python

Using the Interactive Mode


Access the Python interpreter in the interactive mode by running python in the command line. A welcome message containing the version, current date and time, and a line of default commands will be displayed, followd by a primary prompt (>>>) in the final line as below:

Python 3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

[Next] M01T03 - The Spyder IDE →