■ Python Basics Learning Module
Module Title: Introduction to Python Programming
Duration: 5 Days (or 5 Sessions – adjustable based on pacing)
Target Learners: Beginners / Students with little or no programming background
Learning Objectives:
1. Understand what Python is and how it works.
2. Install and set up Python on their computer.
3. Use Python’s basic syntax and commands.
4. Perform basic operations using variables, data types, and operators.
5. Use conditional statements and loops to control program flow.
6. Create simple Python programs.
Lesson 1: Introduction to Python
Learning Goals: Understand what Python is used for and how to install and run programs.
Python is a high-level, interpreted programming language known for its simplicity and readability. It
is widely used in web development, data analysis, AI, and automation.
Example:
print("Hello, World!")
Activity 1: Install Python, open IDLE or VS Code, and run the code above.
Lesson 2: Variables and Data Types
Learning Goals: Learn what variables are and understand different data types.
Variables store values. Python determines type automatically.
Examples:
name = "Jerick"
age = 25
height = 5.9
is_student = True
print(name, age, height, is_student)
Activity 2: Create a Python script that stores your name, age, and favorite color, then print them in
a sentence.
Lesson 3: Operators and Expressions
Learning Goals: Understand arithmetic and comparison operators.
Arithmetic Operators: +, -, *, /, //, %, **
Comparison Operators: ==, !=, <, >, <=, >=
Example:
a = 10
b = 3
print(a + b)
print(a // b)
print(a > b)
Activity 3: Write a program that asks for two numbers and prints their sum, difference, product, and
quotient.
Lesson 4: Conditional Statements and Loops
Learning Goals: Use if, elif, and else statements, and loops.
Example:
age = 18
if age >= 18:
print("You are an adult.")
else:
print("You are a minor.")
for i in range(5):
print("Hello", i)
count = 0
while count < 3:
print("Count:", count)
count += 1
Activity 4: Write a program that asks the user to enter a number and prints whether it is even or
odd.
Lesson 5: Functions and Input/Output
Learning Goals: Define and use functions, and handle user input/output.
Example:
def greet(name):
print("Hello,", name)
user = input("Enter your name: ")
greet(user)
Activity 5: Create a function that accepts two numbers, returns their average, and displays the
result.
Module Assessment:
Part A - Identification:
1. What is the keyword used to define a function in Python?
2. What symbol is used for comments in Python?
3. What does the print() function do?
Part B - Coding Challenge:
Write a program that asks for name and age, then prints:
"Hello [name], you will be [age + 1] next year!"
References:
- [Link] (Official Documentation)
- W3Schools – Python Tutorial
- Programiz – Learn Python Basics