LESSON PLAN 57: Understanding Operators

Lesson Details

Strand: 3.0 Software Development
Sub Strand: 3.3 Identifiers and Operators
Duration: 40 minutes (Single lesson)
Lesson: 4 of 6
Class Level: Grade 10

Key Inquiry Question (Lesson Starter)

How do programs perform calculations and make decisions?

Specific Learning Outcomes

By the end of the lesson, the learner should be able to:

  • a) use operators in a programming language,
  • b) discuss the categories of programming operators (arithmetic, assignment, increment and decrement, relational, logical),
  • c) write and execute programs that involve the use of operators,
  • d) appreciate the role of identifiers and operators in programming.

Selected Learning Experiences

Introduction (5 minutes)

  • Review homework: Check temperature converter and personal bio programs
  • Present key inquiry question: “How do programs perform calculations and make decisions?”
  • Real-world connection: “Calculators, games, and apps all use operators. Even deciding ‘if you pass or fail’ requires operators!”
  • Quick demonstration: Write on board: 10 + 5 = 15 and ask “What is the + symbol called?” (operator)
  • Brainstorm: What other math symbols do you know? (+, −, ×, ÷)
  • Introduce lesson focus: Understanding different types of operators in programming

Development Activities (30 minutes)

Activity 1: Categories of Operators (12 minutes)

  • Discuss the categories of programming operators (arithmetic, assignment, increment and decrement, relational, logical)
  • Teacher uses projector and whiteboard to present each category

1. Arithmetic Operators (calculations) Write on whiteboard:

python

a = 10

b = 3

# Addition

print(a + b)      # 13

# Subtraction

print(a – b)      # 7

# Multiplication

print(a * b)      # 30

# Division (decimal result)

print(a / b)      # 3.333…

# Integer Division (whole number only)

print(a // b)     # 3

# Modulus (remainder)

print(a % b)      # 1

# Exponentiation (power)

print(a ** b)     # 1000

2. Assignment Operators (storing values)

python

# Simple assignment

x = 5

# Compound assignment

x += 3    # Same as: x = x + 3 (now x = 8)

x -= 2    # Same as: x = x – 2 (now x = 6)

x *= 4    # Same as: x = x * 4 (now x = 24)

x /= 2    # Same as: x = x / 2 (now x = 12)

3. Relational Operators (comparisons – result is True or False)

python

a = 10

b = 5

print(a == b)    # Equal to: False

print(a != b)    # Not equal to: True

print(a > b)     # Greater than: True

print(a < b)     # Less than: False

print(a >= b)    # Greater than or equal: True

print(a <= b)    # Less than or equal: False

4. Logical Operators (combining conditions)

python

# AND – both must be True

print(True and True)      # True

print(True and False)     # False

# OR – at least one must be True

print(True or False)      # True

print(False or False)     # False

# NOT – reverses True/False

print(not True)           # False

print(not False)          # True

# Example with conditions

age = 15

grade = 10

print(age > 14 and grade == 10)  # True (both true)

  • Project examples on screen while writing on board
  • Explain each operator with real examples
  • Create summary chart on whiteboard

Operators Summary Chart:

CategoryOperatorsPurposeExample
Arithmetic+, -, *, /, //, %, **Math calculations5 + 3 = 8
Assignment=, +=, -=, *=, /=Store/update valuesx = 10
Relational==, !=, >, <, >=, <=Compare values10 > 5 → True
Logicaland, or, notCombine conditionsTrue and False → False

Activity 2: Guided Practice Worksheet (10 minutes)

  • Write and execute programs that involve the use of operators
  • Distribute printed worksheets with operator exercises
  • Students work individually, using whiteboard chart as reference

Worksheet Exercises:

Part A: Identify the Operator Category Match each expression to its category:

  1. x = 15 → __________ (Assignment)
  2. 10 > 5 → __________ (Relational)
  3. a + b → __________ (Arithmetic)
  4. True and False → __________ (Logical)
  5. score += 10 → __________ (Assignment)

Part B: Predict the Output What will be printed?

python

1. print(8 + 2)           # ?

2. print(8 – 2)           # ?

3. print(8 * 2)           # ?

4. print(8 / 2)           # ?

5. print(8 % 2)           # ?

6. print(10 == 10)        # ?

7. print(10 != 5)         # ?

8. print(5 > 3 and 2 < 4) # ?

Part C: Write Expressions Write Python expressions for:

Upgrade or Subscribe

Oops! Unlock More Access Rights:

If you find that you are not subscribed, consider upgrading your account or subscribing to the necessary plan to gain access.

How do I enrol for membership to access all resources?

Visit our premium page and make two steps. Begin …


Discover more from ELIMU ASSISTANT

Subscribe to get the latest posts sent to your email.

Elimu Assistant Team

By Elimu Assistant Team

Get in Touch! Need educational resources? Reach out! I'm here to help. Name: Mr. Atika Email: nyamotima@yahoo.com Phone: 0728450425 (Safaricom) | 0738619279 (Airtel)

Leave a Reply

Discover more from ELIMU ASSISTANT

Subscribe now to keep reading and get access to the full archive.

Continue reading