CoachFullStack

Python Guide #1: Hello World!

After downloading all the necessary tools, it is time to create your first Python program, which, traditionally has to be the famous “Hello World!”.

1. Create folder

Lets start from creating the folder, where you will have programs created throughout this series of guides. Lets call it, python_guide

2. Open VSC

Start VSC and open just created folder (tip: ctrl + k + o shortcut on keyboard).

3. Create file

Lets create file, and name it hello.py Creating new file in VSC

4. Write first line of code

print("Hello World!")

5. Execute your program

In VSC code open terminal ("ctrl + shift + ~") and , execute command:

# For Windows
python hello.py

# For Linux
python3 hello.py

You will see output:

Hello World!

Congratulations

Your first Python program is working.



Next: Python Guide #3: Variables and Datatypes

Previous: Python Guide #1: Installing Python and VSC