Copyright (c) Hyperion Entertainment and contributors.

AmigaOS Manual: Python Getting Started

From AmigaOS Documentation Wiki
Revision as of 22:00, 8 January 2019 by Janne Peräaho (talk | contribs) (Changed title to "How to write Python programs" and added an example.)
Jump to navigation Jump to search

Running Python programs

Using Python interactively

How to write Python programs

Program 1. Amiga.py

# A simple program
print 'Amiga. The Computer For the Creative Mind.'

Enter the above program, and save it as PYTHON:Scripts/Amiga.py. To run the program, open a Shell window and type:

Python PYTHON:Scripts/Amiga.py

You should see the following text in your Shell window:

Amiga. The Computer for the Creative Mind.