0% found this document useful (0 votes)
44 views8 pages

LAB ACTIVITY 1: Install & Setup Python Environment

This document provides instructions for installing Python and the PyCharm IDE on Windows. It is divided into 3 activities: 1) Installing Python 3, which involves downloading the Python installer from python.org and checking that it was successfully installed by running sample Python code. 2) Checking that Python is installed properly by using the Python interpreter in the Command Prompt. 3) Installing PyCharm by downloading the community version from jetbrains.com and following the installation instructions. Basic steps like creating a new project and Python file are also demonstrated.

Uploaded by

ezulham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views8 pages

LAB ACTIVITY 1: Install & Setup Python Environment

This document provides instructions for installing Python and the PyCharm IDE on Windows. It is divided into 3 activities: 1) Installing Python 3, which involves downloading the Python installer from python.org and checking that it was successfully installed by running sample Python code. 2) Checking that Python is installed properly by using the Python interpreter in the Command Prompt. 3) Installing PyCharm by downloading the community version from jetbrains.com and following the installation instructions. Basic steps like creating a new project and Python file are also demonstrated.

Uploaded by

ezulham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

DFP40203 PYTHON PROGRAMMING/PBU

LAB ACTIVITY 1: Install & Setup Python Environment


Duration: 3 Hours

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

Software: Pycharm IDE

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

Step 2: On the download page, choose the community download

4
DFP40203 PYTHON PROGRAMMING/PBU

Step 3: Click on the PyCharm Installer. Use the default installation setting.

1 2

3 4

5 6

Now you have successfully installed the PyCharm IDE!

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 5: Close the Tip of The Day

Step 6: To create a New Python File, click on File -> New -> Python File. Put helloWorld.py
as file name.

Step 7: Type the following code to the pyCharm editor.


print("hello World")
print("Politeknik Balik Pulau"

Step 8: To run the code, click on Run -> Run. Choose helloWorld

7
DFP40203 PYTHON PROGRAMMING/PBU

You might also like