Using Python Shell at python.org

This section provides a tutorial example on how to use to the Python shell at python.org with a Web browser to run Python code.

If you just want to try few lines of Python code, you can use the Python Shell at python.org with a Web browser. It is free to use. And no login is required.

Here is what I did:

1. Start any Web browser.

2. Go to https://www.python.org/shell. A Python interactive shell is displayed in the middle of the the Web page.

3. Enter the following Python code at the ">>>" prompt:

print("Hello world!")

4. Press "Enter". The code is interpreted immediately and output is displayed.

>>> print("Hello world!")
Hello world!

5. Continue to try more Python code.

6. If you see the shell console is closed, refresh your Web browser. The Python shell will be started again.

Python Shell at python.org
Python Shell at python.org

Table of Contents

 About This Book

Running Python Code Online

 What Is Python Online IDE

Using Python Shell at python.org

 Running Python Code at pythonanywhere.com

 Python IDE at online-python.com

 Python IDE at sympy.org

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

 Statements - Execution Units

 Function Statement and Function Call

 Iterators, Generators and List Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

 "sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python

 SciPy.org - Python Libraries for Science

 pandas - Data Analysis and Manipulation

 Anaconda - Python Environment Manager

 Jupyter Notebook and JupyterLab

 References

 Full Version in PDF/EPUB