Hello World
Create a new directory called pyintro
and open it in VS Code.
$ cd ~ # go to your home directory
$ mkdir pyintro # create a project directory
$ cd pyintro # change the current directory
$ code . # open VS Code
Create a new file add the following code to it:
File: hello_world.py
print("Hello, World!")
To execute this code, run the following command in the terminal:
$ conda activate pyintro # make sure you are in the right environment
$ python hello_world.py # run the script
This should print
Hello, World!
to the terminal.
Congratulations, you have just written your first Python program!