TECHNOLOGEPH

A Computer Science Curriculum for Kids


Using Interactive Python

Interactive python provides users with a quick way to execute commands in python without creating a file.

To use interactive python, first open the Terminal application

When you open Terminal, it should look something like this:

The lines in the terminal are called command lines, and anything you type after the dollar sign $ is an argument.

To open interactive python, type python3 into the command line. Your Terminal should then look something like this:

You can type python operations after the three carrots >>>. When you press Enter, the output will appear on the next line.

To exit interactive Python, just type exit() and press Enter.