Getting Started
Opening the Terminal Window
- Open the menu by clicking the leftmost icon on the bottom of the screen.
- Select Utilities and then Terminal.
Using the Interpreter in Interactive Mode
- Open a terminal window.
- Type python to enter interactive mode.
- Type the python code you wish to run.
- Use Ctrl-D to exit the interpreter.
Using the Interpreter in Non-Interactive Mode
- Open a text editor (e.g., KEdit):
- Open the menu by clicking the leftmost icon on the bottom of the screen.
- Select Utilities, then Editors, then KEdit.
- Type the code you wish to run and the save it in an appropriate location. Use the .py extension for your file name.
- Open a terminal window and navigate to the directory where you saved your file.
- Type python filename, replacing filename with the actual name of your file, to run your program.
- Return to the KEdit window to fix any errors reported by the interpreter. Save your file and repeat the previous step to run again.
Sami Rollins