Python Tutorials - Herong's Tutorial Examples - v2.14, by Herong Yang
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.
Table of Contents
►Using Python Shell at python.org
Running Python Code at pythonanywhere.com
Python IDE at online-python.com
Variables, Operations and Expressions
Function Statement and Function Call
Iterators, Generators and List Comprehensions
Packages and Package Directories
"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