Computer Programming 1
Computer Programming 1
We believe that every learner has talents and potentials to be developed, dignity and worth to be valued, rights to be respected and responsibilities to be assumed;
OLOPSC education is a shared responsibility of the learner, home, school and community; the school provides the environment for equipping individuals with learning skills,
PHILOSOPHY technology and life skills for a successful and purposeful life in the 21st century; an educational program which promotes global awareness, financial literacy, world-class
entrepreneurship, and functional knowledge in economics, business, civics, health and environment will support global and local development.
OLOPSC We envision OLOPSC as a premier caring educational institution committed to the development of a progressive and peaceful society by developing its graduates to be
VISION of good character, responsible stewards of God’s gifts, and empowered and enabled for the future.
OLOPS College is committed to providing relevant, quality and holistic education by: creating an academic environment that stimulates love for learning and provides
OLOPSC opportunities for the application of learning in an ever-evolving world; nurturing God-loving individuals with Marian virtues and spirituality; instilling love of country, pride
MISSION in our identity and cultural heritage; fostering deep awareness, behavioral changes and active engagement in practices towards sustainable development; developing
leadership with a heart for service; and, empowering and enabling learners to be future-ready.
ACADEMIC HONESTY
1. Academic honesty, as expected of every student, is important to the process of education and to upholding high ethical standards. Acts of cheating, plagiarism,
inappropriate use of technology, or any other kind of unethical behavior, may subject the student to necessary academic disciplinary measures and penalties including
dismissal.
2. All work required for submission for purposes of evaluation in a course, including journals, tests, term papers, position papers, must represent only the work of the student
unless certain indications like pertaining to group or dyadic activity is otherwise stipulated.
3. Materials cited and/or taken from the work of others and used as reference and literary supplement must be acknowledged. Materials submitted to fulfill requirements in one
course may not be submitted in another course without prior approval of the instructor(s). It is a thrust that students be encouraged to practice ingenuity in producing
outputs.
ATTENDANCE REGULATIONS
1. Students enrolled in the subject are expected to attend every scheduled meeting and to be present for the full class period. Absenteeism and tardiness, regardless of
cause, are a threat to academic achievement. These cases will be addressed accordingly.
2. A student who is absent from a class is responsible, nevertheless, for all material covered during the class period. The student is also subject to appropriate consequences
if a test, quiz, recitation, homework assignment, or any other activity falls on the day of absence unless the student is granted an excused absence. Excused absences may
be granted to students who participate in extracurricular activities; however, due process is observed.
COURSE PORTFOLIO
● All tasks and major exams and evidence of performance assessments are to be compiled by the students as part of their portfolio and must be submitted to the instructor
before the end of the semester as part of the assessment.
Course Description:
This course introduces first-year computer science students to the fundamental concepts and techniques of computer programming using Python. The course is designed to build a strong foundation
in programming logic, problem-solving, and software development. Students will engage in hands-on programming exercises and projects to develop skills progressively, starting from basic syntax
and constructs to creating their own applications.
1. Orientation
6. Modular Programming and
2. Introduction to Programming Methods
10. Flask Routing and Templates
3. Functions and Control 7. Error Handling and
Week 1 to Week Structures Part 1 Week 7 to Week Debugging Week 13 to Week 11. Handling Forms and User Input in
6 12 18 Flask
4. Data Structures and Control 8. Introduction to Modules and
Structures Part 2 Libraries 12. Flask Project Development
5. Create a Simple Python 9. Introduction to Flask and
Program Web Development
Teaching-Learning
Learning Outcomes Content Resources Assessment
Activities (TLAs)
Week 1: Orientation
At the end of these weeks, the 1. Introduction to Online Resources: Lectures: Quiz:
students should be able to: programming, history of ● Interactive lecture and ● Multiple-choice quiz
Python, and Python W3schools Python Q&A on programming on basic programming
a. identify basic setup. Documentation: basics concepts.
programming concepts 2. Variables, data types, ● https:// ● Explanation of
and terminology and operators. www.w3schools.com/ variables, data types, Short Exercises:
b. recognize Python syntax python/default.asp and operators ● Write code snippets to
and basic data types. Python Official Website: demonstrate
● https:// Hands-on Activities: understanding of data
www.python.org ● Installing Python and types and operators.
setting up the
environment
● Coding exercises in
the Python shell
Week 3: Functions and Control Structures Part 1 (Conditional Statements and Return keyword)
At the end of these weeks, the 1. Function definition, Online Resources: Lecture: Written Assignment:
students should be able to: parameters, and return ● Discuss function ● Describe how
values. W3schools Python components and their functions improve
a. explain the purpose and 2. Modular programming Documentation: role. code organization and
structure of functions with functions. ● https:// ● Discuss Conditional reuse.
b. describe conditional 3. Conditional statements www.w3schools.com/ Statements and
statements and return and loops (if, for, while). python/default.asp Boolean values. Short Quiz:
statements in Python 4. Problem-solving with ● Identify the missing
c. apply functions and loop control structures. Hands-on Activity: variable in the given
statements to organize ● Simulation activity conditional
code effectively and about conditional statements.
efficiently. statements.
● Writing basic Function Implementation
functions with Exercise:
parameters and return ● Write a program using
values. multiple functions to
solve a problem.
Lab Exercise:
● Use conditional
statements to identify
if the value is even or
odd.
● Refactor code into
functions for
modularity.
At the end of these weeks, the 1. Program design, W3Schools Python Tutorial. Lecture: Project Submission and
students should be able to: implementation, and ● https:// ● Discuss program Presentation:
testing. www.w3schools.com/ design and planning ● Present a simple
a. design and implement a python/ Python program to
simple Python program. Project Work: solve a real-world
Python Documentation ● Plan and implement a problem
small project
● https://docs.python.org/ individually
3/
At the end of these weeks, the 1. Method definition, W3Schools Python Tutorial Lecture: Quiz:
students should be able to: calling, and ● https:// ● Discuss advantages of ● Identify components of
modularization. www.w3schools.com/ modular programming. a modular program.
a. recognize the importance 2. Refactoring code into python/
of modular programming methods. Python Documentation. Hands-on Activity: Modular Programming
b. implement modular ● https://docs.python.org/ ● Breaking down a Exercise:
design in Python 3/ program into functions ● Write a program using
programs. and methods. modular design
principles.
Lab Exercise:
● Refactor a complex
script into multiple
functions for clarity
and reuse.
At the end of these weeks, the 1. Exceptions, error W3Schools Python Tutorial Lecture: Quiz:
students should be able to: handling, and debugging ● https:// ● Explain common ● Identify and categorize
tools. www.w3schools.com/ errors and debugging common programming
a. describe common 2. Practical debugging python/ strategies. errors.
programming errors and scenarios. Python Documentation.
debugging techniques ● https://docs.python.org/ Hands-on Activity: Debugging Exercise:
b. apply debugging 3/ ● Debugging exercises ● Debug and correct
techniques to improve using Python tools. errors in a provided
code reliability. codebase.
Lab Exercise:
● Use debugging tools
to trace and fix errors
in sample code.
At the end of these weeks, the 1. Python standard library W3Schools Python Tutorial Lecture: Quiz:
students should be able to: and third-party modules. ● https:// ● Overview of useful ● Identify the correct
2. Using and creating www.w3schools.com/ modules and libraries. library for specific
a. recognize the use of modules. python/ tasks.
modules and libraries in Python Documentation. Hands-on Activity:
Python ● https://docs.python.org/ ● Explore the Python Module Integration Exercise:
b. integrate modules to 3/ standard library. ● Develop a program
enhance program that utilizes multiple
functionality. Lab Exercise: libraries for a given
● Write programs using task.
libraries to perform
complex tasks.
At the end of these weeks, the 1. URL routing, HTML Flask Documentation Lecture: Quiz:
students should be able to: templates. ● https:// ● Explain routing and ● Questions on routing
2. Creating dynamic web flask.palletsprojects.com template concepts. and templates.
a. describe routing and pages. /en/3.0.x/
template rendering in Hands-on Activity: Flask Routing and Templates
Flask ● Create routes and Exercise:
b. implement routing and templates in a Flask ● Develop a web app
templates in Flask app. with user navigation
applications. using routes and
Lab Exercise: templates.
● Build a Flask app with
multiple routes and
dynamic content.
At the end of these weeks, the 1. Introduction to Web Flask Documentation Lecture: Quiz:
students should be able to: Development with Flask. ● https:// ● Discuss form handling ● Identify steps in form
2. HTML, CSS, Bootstrap. flask.palletsprojects.com techniques and data handling and
a. explain form handling and /en/3.0.x/ validation. validation
data validation in Flask
b. create web forms and Hands-on Activity: Form Handling Exercise:
validate user input in ● Create a basic form in ● Develop a Flask app
Flask apps. Flask. with user input forms
and validation
Lab Exercise:
● Implement form
handling in a Flask
app and validate input.
At the end of these weeks, the 1. Project planning and Flask Documentation Lecture: Project Planning Document:
students should be able to: design strategies. ● https:// ● Discuss project ● Submit a detailed
2. Implementation and flask.palletsprojects.com planning and design. project plan including
a. plan and design a Flask testing of projects. /en/3.0.x/ objectives and
project Project Work: timeline.
b. develop a comprehensive ● Begin project planning
Flask web application. and development. Project Progress Review:
● Present a demo of the
Lab Work: project and receive
● Implement project feedback.
features and conduct
testing.
At the end of these weeks, the 1. Final project Flask Documentation Presentation: Final Project Submission:
students should be able to: presentations. ● https:// ● Students present their ● Submit the final
2. Course review and flask.palletsprojects.com projects. project and present it
a. present and evaluate a feedback. /en/3.0.x/ to the class.
functional Flask web Peer Review:
application ● Evaluate peer Reflective Essay:
b. reflect on the learning presentations. ● Write an essay
process and outcomes. reflecting on the
Discussion: learning journey and
● Reflect on the course future goals.
and learning
experiences.