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.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

[Next] M01T03 - The Spyder IDE →