Python
Python
Student ID #
Date of submission
Objectives
1. EQUIPMENTS/SOFTWARE USED
No Name of the Component / Equipment /Software
1 IDLE python
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
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
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”.
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
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”.
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
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