OBJECTIVE
Installing python software
lab#1 gcs182
Installing Python Software INSTRUCTOR: Oumaima Guedhami
Principles of Computing and Programming
Computer Science Department
Lab 1 - Getting Started with Python I
Learning Outcomes Grades out of 5
CLO1: Identify the basic components of computer programming in Python, which
can be applied to other languages as well (C, C++, Python, etc.) [PLO: a]
Student(s) Name (s)
Student ID #
Date of submission
Objectives
• To learn how to set up the programming environment.
• To familiarize with the programming environment.
• To write simple programs.
1. EQUIPMENTS/SOFTWARE USED
No Name of the Component / Equipment /Software
1 IDLE python
Installation Guide (15 minutes)
INSTALLING PYTHON
You need first to install Python interpreter (Python 3) on your computer to be able to run
Python programs. The following are instructions to download and install Python interpreter:
1. Go to www.python.org/downloads and download the last version of Python 3.12 for your
operating system.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 1 of 12
Computer Science Department
2. After the download is completed, double click on the file to run the installer. Then, check all
checkboxes and click on the “Install Now” button.
3. After the installation process is completed, a new window shows up. Click on the “Disable
path length limit” button if it exists. Then, click on the “close”
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 2 of 12
Computer Science Department
Installing PyCharm
An integrated development environment (IDE) is an application that provides comprehensive
facilities to programmers for software development. For Python programmers, PyCharm is one
of the best IDE for Python. Also, it has a free version called “Community Edition”. The following
are instructions to download and install Python interpreter:
1. Go to https://www.jetbrains.com/pycharm/download/ and then download “Community”
version.
2. After the download is completed double click on the file to run the installer. Then, click on
“Next >”.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 3 of 12
Computer Science Department
3. Then, click on “Next >”
4. Then, check the checkboxes as shown the following figure and click on “Next >”
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 4 of 12
Computer Science Department
5. Then, click on “Next >”
6. Then, wait until the installation process is finished.
7. After that, PyCharm is ready to run. Check the checkbox and click “Finish”
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 5 of 12
Computer Science Department
8. Then, the program is going to start. For the first time, it will ask you to setup some
configurations. On the first one, check on “Do not import settings” and click on “OK”.
9. After that, PyCharm is ready to use.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 6 of 12
Computer Science Department
Practice Activities with Lab Instructor (25 minutes)
Question 1
Write a program that prints “Welcome to Python” and “Python is fun”. The output should be as the
following:
Solution
Phase 1: Problem-Solving Phase:
1- Print the first message “Welcome to Python”.
o You can use the print function to output (print) a string (message).
o print("Welcome to Python")
2- Print the second message “Python is fun”.
o print("Python is fun"
Phase 2: Implementation Phase:
1- Open PyCharm.
2- Then, click on “Create New Project”.
3- Then, name it “Lab 1”.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 7 of 12
Computer Science Department
4- Then, the new project is created and opened. After that, you have to create a new Python file inside
the project to write the code on it.
5- Select the project name on the left menu, right click on it and select “New” → “Python File”.
6- Then, name the new file “activity_1”, and click on “OK”.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 8 of 12
Computer Science Department
7- Now, the new file is created and opened. Write the code in it:
8- To run the file, click on Run bottom , which is the name of the file.
9- After that, PyCharm is going to run the file using the Python interpreter, and then display the output
of the file to you.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 9 of 12
Computer Science Department
Question 2
2. Use Online Python Tutor - visualize, debug, get AI help for Python, Java, C, C++, and JavaScript
a. Click “Visualize Execution”, then click the next button to execute each statement till end.
b. Change the code to
print (“your name”) <- change to your name
print (“your major”) <- change to your major
c. Take s Print Screen of your run
CONCLUSION / Which IDE will you decide on to develop your code for the rest of the semester and why?
<< ADD HERE YOUR COMMENTS feedback about the activity/assignment >>
3. SIGNATURE
This report is accurate to the best of my knowledge and is a true representation of my activity results.
Student Name
Student ID #
Date of submission
Signature
Students should submit a report about their lab named: GCS182_Lab1_Student_Name.pdf
All submissions to be done on Blackboard.
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 10 of 12
Computer Science Department
Computer Science Department – GCS 182 – Oumaima Guedhami Spring 2025 Page 11 of 12