Hello World! in Python

First of all you need to install python if it is not already installed. Python download page: https://www.python.org/downloads/

Python installation path should be added as an system variable in Windows:

  • Open System Properties by typing sysdm.cpl in Command Prompt window
  • Go to the Advanced tab and click the Environment Variables
  • In System variables find the Path variable and click Edit
  • Add the path where Python is installed

In Windows you can open a command prompt and type the following command:

or just type py and press Enter. You must see Python start up:

If you are using Visual Studio Code do one of the following:

  • Right click anywhere in the editor window > Run Python file in Terminal
  • Main menu > View > Command Palette… > Python: Start REPL > Type the lines of code and press Enter
  • Select the Lines of code > right click > Run Selection/Line in Python Terminal