You are on page 1of 2

College of Computer Studies

BS Information Technology
Python Programming Language
LABORATORY Activities |1

Online Laboratory Activity No. 7


Iteration Structure
Learning Outcome
At the end of this activity, the student should be able to code the iteration and list statements using
Python PL.

Activity Requirement
1. Write a program that will accept words and store it in a list, a word bank.
2. The program will ask the user to enter a word.
3. The program will store the word in a list.
4. The program will ask the user if he wants to try again. The user will input Y or y for yes, and N or n
for no.
5. If yes, refer to step 2.
6. If no, display the total number of words and all the words that the user entered.

Sample Output
Enter a word: programming
You entered the word programming.
Do you want to try again? [Y/N] Y
Enter a word: language
You entered the word language.
Do you want to try again? [Y/N] N
You entered 2 words:
programming
language

Source Code (paste your code under this tab using Courier New font)

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


College of Computer Studies
BS Information Technology
Python Programming Language
LABORATORY Activities |2

Screenshot of Output (paste your output under this tab)

Reporting
1. Save this file as PDF following the filename “OLA-7_Surname_Iteration.pdf”
(ex: OLA-7_Cruz_Iteration.pdf).

2. Create a Python file and save it following the filename “PY_OLA-7_Surname_Iteration.py”


(ex: PY_OLA-4_Cruz_Iteration.py).

3. Upload your PDF and Python files to the shared Google Drive folder.

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

You might also like