Python Tutorials - Herong's Tutorial Examples - v2.14, by Herong Yang
Running Python Code at pythonanywhere.com
This section provides a tutorial example on how to use to Linux terminal at pythonanywhere.com to run Python code with a Web browser.
If you are familiar with Linux system, you can use the Linux terminal at pythonanywhere.com to run Python code with a Web browser. It is free for Beginner users. But login is required.
Here is what I did:
1. Start any Web browser.
2. Go to the PythonAnywhere log in page at https://www.pythonanywhere.com/login.
3. Click the "Sign up" link to create a login account. The dashboard is display.
4. Click the "$ Bash" link in the "New console" section. A Linux terminal is displayed in the browser.
5. Create a Python code file, hello.py using the "vi" command.
6. Run the Python code file using the "python" command.
02:44 ~ $ vi hello.py 02:44 ~ $ python hello.py Hello world! 02:44 ~ $
7. You can also use the "Files" interface to upload and download Python code files.
pythonanywhere.com also provides interactive Python shells and IPython shells.
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