

Try doing some mathematical calculations and see how Python works with arithmetic operators. Now you can run any kind of python code in this interactive session. Your first program in Python - Hello World! This opens an interactive session of Python 3.9 on your terminal In your interactive session, type print("Hello World!"), and press Enter. Next type python on your command line terminal and press Enter. Check the version of Python on your command line You should see the version of Python that you have downloaded. Open your command-line terminal and type python -version. You can close the dialog box after this message. If your installation process ran fine, you should see a Successful Setup message like below. You should see the installation process begin. By adding Python 3.9 to PATH, you will be able to execute the Python interpreter from any directory in your system. It basically tells your Windows machine what folders to look in when attempting to find a file. PATH is an environment variable in Windows.

Make sure to check the dialog box for “ADD Python 3.9 to PATH”, present at the bottom of the dialog box. It will open up a dialog box as shown below.

Download the latest Python installerĭouble click on the installer to start the installation process for Python 3.9. Once you click on the Download button, the installer should be downloaded. On the day of writing this article, the latest version was Python 3.9.1. Once you are on the downloads page, click the button for the Latest Python 3 Release - Download Python 3.x.x. Step 2 - Download the latest version of Python So, it will show you the appropriate installer for your machine. The website will automatically detect your operating system. Visit the official website of the Python Programming language and click on Downloads. Step 1 - Visit the official website of Python
