Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

College of Computer Studies

BS Information Technology
Python Programming Language
LABORATORY Activities |1

Online Laboratory Activity No. 2


Basic Input and Output

Objectives
At the end of this module, the student should be able to code the basic input and output statements
using Python PL.

Machine Problem

Ask the user to input the student’s name, grade in Math, Science, and English. Then compute the
average.

Sample Output
Enter student’s name (LN, FN MI): Alcantara, James C.
Enter student’s grade in
Math: 95
Science: 90
English: 85
Average grade of Alcantara, James C. is 90.

Source Code (paste your code under this tab using Courier New font)
print("ENTER 5 Grades")
a = int(input("enter grade "))
b = int(input("enter grade "))
c = int(input("enter grade "))
d = int(input("enter grade "))
e = int(input("enter grade "))
add = a + b + c + d + e
print("addition is ",add)
average = add / 5
print("Average = ",average)

Screenshot of Output (paste your output under this tab)

ITL313-18 |Systems Integration and Architecture Laboratory Prepared by Prof. TCAlcantara, MSIT
College of Computer Studies
BS Information Technology
Python Programming Language
LABORATORY Activities |2

Submission
1. Save this file as PDF following the filename “ITL313-18_section_OLA-2_BasicIO_Surname.pdf”
(ex: ITL313-18_3-BSIT-.1_OLA-2_BasicIO_Cinco.pdf).
2. Save your Python code following the filename “OLA-2_BasicIO_Surname.py” (ex: OLA-
2_BasicIO_Cinco.py).
3. Upload your PDF and Python files to the folder you created in the shared Google Drive under
ITL313-18_Lab_Surname folder.

ITL313-18 |Systems Integration and Architecture Laboratory Prepared by Prof. TCAlcantara, MSIT

You might also like