ACTIVITY 1: Executing A Python Program and IDE: T-CPET121LA - Introduction of Computational Thinking
ACTIVITY 1: Executing A Python Program and IDE: T-CPET121LA - Introduction of Computational Thinking
Objective: Be familiar with running a python program; and using python IDE.
Instructions: Follow the following procedure to observe the different ways in executing a python
program. Write your observation in the answer sheet provided.
OBSERVATION A: ________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
OBSERVATION B: ________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
OBSERVATION C: ________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
OBSERVATION D: ________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
OBSERVATION E: ________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
CONCLUSION: ___________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
T-CPET121LA
Introduction to Computational Thinking
De La Salle University - Dasmariñas 2
CEAT – Engineering Department
SCRIPT MODE – execution of a python program written in a file. A python program file has an
extension file of .py
5. Close your program
6. Open any text editor (Notepad)
7. Type print(‘Hello World’)
8. Save your file in your desktop and name it as Sample.py
9. Open your windows command line
10. Using command line, locate to your desktop where your python file is saved. If you are not familiar,
type cd desktop and press enter key.
11. Now you are in desktop directory, type dir and press enter key. Check if your python file is inside
the desktop.
12. Type Sample.py and press enter key
13. Modify your python file. On your desktop, right click your python file and select Edit with IDLE.
14. Modify your code to print(Hello World)
15. Using command line, execute the python file.
USING IDE (Python IDLE) – IDE means Integrated Development Environment that is used for typing
and executing python syntax. Python IDLE is a IDE installed along the python programming language.
16. Open the python shell
17. Click the tab File > New File
18. A window will appear as shown below
USING IDE (PyCharm) – PyCharm is one of the famous python IDE develop by JetBrains.
T-CPET121LA
Introduction to Computational Thinking
De La Salle University - Dasmariñas 3
CEAT – Engineering Department
T-CPET121LA
Introduction to Computational Thinking