LAB ACTIVITY 1: Install & Setup Python Environment
LAB ACTIVITY 1: Install & Setup Python Environment
Learning Outcomes
By the end of this tutorial session, you should be able to:
1. Install and Setup Python 3 in Windows Environment
2. Install and Setup PyCharm For Community in Windows Environment
Activity 1A
Activity Outcome: Install and Setup Python 3 in Windows Environment
Step 1: Browse for https://www.python.org/ . Go To Downloads Section and choose
Windows Platform
Step 2: Next from page Python Release For Windows, choose Latest Python 3 Release
1
DFP40203 PYTHON PROGRAMMING/PBU
Step 3: In the page of latest version of python, look for Files section
Download Python installer either 32bits or 64bits depending on your Operating System
Step 4: Click on the Python Installer. By default the checkbox Add Python 3.9 to PATH is
unchecked. Make sure to check on Add Pythion 3.9 to PATH. Then click on Install Now.
2
DFP40203 PYTHON PROGRAMMING/PBU
Activity 1B
Activity Outcome: Check Python if the Python is installed on your device.
Step 1: On the computer search and open Command Prompt.
Step 2: Type command python then click Enter
Congratulations you have installed Python and run the python interpreter!
Step 6: Run some Python code. Now at the '>>>' prompt type in:
print(‘Hello World’)
3
DFP40203 PYTHON PROGRAMMING/PBU
Step 7: Play more with the Python Interpreter. Type the following code.
print(5 + 10)
num1 = 100
num2 = 10
multiply = num1 * num2
print(multiply)
Activity 1C
Activity Outcome: Install PyCharm IDE.
Step 1: Browse for https://www.jetbrains.com/pycharm/, then click on
Download button
4
DFP40203 PYTHON PROGRAMMING/PBU
Step 3: Click on the PyCharm Installer. Use the default installation setting.
1 2
3 4
5 6
5
DFP40203 PYTHON PROGRAMMING/PBU
Step 3: Then, start the PyCharm IDE. Once started, the first dialog shown to you asks if you
want to import any settings you may have had for another version of PyCharm. At
this point, select ‘Do not import settings’.
You should now be presented with the landing screen for PyCharm
Step 4: Click on the ‘Create New Project’ option in the landing dialog. Use default location
but change the name of the project to python_intro. Click Create.
6
DFP40203 PYTHON PROGRAMMING/PBU
Step 6: To create a New Python File, click on File -> New -> Python File. Put helloWorld.py
as file name.
Step 8: To run the code, click on Run -> Run. Choose helloWorld
7
DFP40203 PYTHON PROGRAMMING/PBU