Course Title: Python Programming 2
Course Description
This course builds on the fundamental programming concepts introduced in Python 1. It focuses on developing students’ ability to design structured programs using conditional statements, loops, functions, and Python libraries. Emphasis is placed on problem-solving, algorithmic thinking, and practical programming applications.
Course Objectives
By the end of this course, students will be able to:
Apply conditional structures to control program execution.
Use loops effectively to automate repetitive tasks.
Design and implement modular programs using functions.
Utilize Python libraries to extend program functionality.
Develop logical thinking and problem-solving skills.
Debug and test programs efficiently.
Course Topics and Weekly Plan
Week 1: Review of Python Basics
Variables and data types
Input and output
Basic operators
Week 2: Conditional Statements
if statement
if–else structure
if–elif–else ladder
Logical and comparison operators
Week 3: Nested Conditions and Applications
Nested decision structures
Practical problem-solving exercises
Week 4: Introduction to Loops
for loop
range() function
Iteration over sequences
Week 5: While Loop
while loop structure
Infinite loops and control strategies
Week 6: Loop Control Statements
break
continue
pass
Week 7: Nested Loops and Patterns
Pattern printing
Practical exercises
Week 8: Midterm Assessment / Practical Test
Week 9: Functions – Fundamentals
Defining functions
Parameters and arguments
Return values
Week 10: Advanced Functions
Default arguments
Recursive functions (introduction)
Variable scope (local vs global)
Week 11: Introduction to Python Libraries
Importing modules
Built-in libraries (math, random)
Week 12: External Libraries and pip
Installing packages
Simple applications
Week 13: Mini Projects
Combining conditions, loops, and functions
Problem-solving tasks
Week 14: Final Review and Project Submission
Teaching Methods
Lectures and demonstrations
Practical lab sessions
Guided exercises
Mini projects
Assessment Methods
Continuous assessment (assignments, quizzes)
Midterm practical test
Final project or exam
Learning Outcomes
Students will be able to:
Write structured Python programs.
Analyze and solve computational problems.
Develop reusable and efficient code.
Apply programming concepts in real-world contexts.