There are two ways of using Python:
In this guide, we’ll start with the interactive shell because it’s ideal for exploring the language. But at some point, using the REPL won't cut it anymore and you'll have to start creating Python files.
If you installed Python on your local machine, you first need to start a terminal or command prompt in which you can start the Python interactive shell. On all platforms, you should be able to start Python 3 with the command
python3 (or sometimes just
python). Just be sure you are running Python 3, not 2.
On Linux, you first need to start a terminal. This can often be done with the shortcut
T. Alternatively, you can search for the terminal in your menus. This differs from distribution to distribution. Once you have a terminal running, simple enter
python3 to start the Python REPL:
On Windows, you can start Python from a terminal as well. E.g., to start PowerShell, simply hit the Windows key and start typing "PowerShell". Start it and then enter
python3. If you don't have PowerShell, you can use the 'Command Prompt' program instead.
If you liked this page, please share it with a fellow learner: