How Do I Start Python on Ubuntu?
Contents How Do I Run Python on Ubuntu? Running a Script Open the Terminal by Searching for It in the Dashboard or Pressing Ctrl + Alt + T. Navigate the...
Contents
How do I run Python on Ubuntu?
Running a Script
- Open the terminal by searching for it in the dashboard or pressing Ctrl + Alt + T .
- Navigate the terminal to the directory where the script is located using the cd command.
- Type python SCRIPTNAME.py in the terminal to execute the script.
How do I start Python in Linux terminal?
To start a Python interactive session, just open a command-line or terminal and then type in python , or python3 depending on your Python installation, and then hit Enter . Here’s an example of how to do this on Linux: $ python3 Python 3.6.