You are on page 1of 1

If not working visit https://www.digitalocean.

com/community/tutorials/how-to-install-python-3-
and-set-up-a-local-programming-environment-on-ubuntu-16-04

Step 1 creating a environment

mkdir environment

cd environment

python3 -m venv my_env

ls my_env

step 2 activating

source my_env/bin/activate

step 3
nano hello.py

Once the text file opens up in the terminal window we’ll type out our program

Exit nano by typing the control and x keys, and when prompted to save the file press y.

Once you exit out of nano and return to your shell, let’s run the program:
type python hello.py

The hello.py program that you just created should cause your terminal to produce the following
output:

You might also like