Professional Documents
Culture Documents
ITL313-18 Section OLA-3 BasicIO VILLENO
ITL313-18 Section OLA-3 BasicIO VILLENO
BS Information Technology
Python Programming Language
LABORATORY Activities |1
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)
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