Hero background

Effective Learning

Technology • 60 • 10 students • Created with AI following Aligned with New Zealand Curriculum

Download now

Free PDF · we'll email you a copy

Technology
60
10 students
1 September 2024

Teaching Instructions

Lesson plan based on basic data structure arrays in python with some ice breaker activities

Effective Learning

Level: Year 21-30

Subject Area: Technology Topic: Basic Data Structures - Arrays in Python

Curriculum Reference

This lesson aligns with the New Zealand Technology Curriculum at NCEA Level 2.

Learning Objectives

  1. Understand what arrays are and how they are structured in Python.
  2. Learn how to create, manipulate, and access arrays in Python.
  3. Apply knowledge of arrays to solve basic problems.

Materials Required

  • Computers with Python installed
  • Internet access for Python documentation
  • Whiteboard and markers
  • Printed handouts with Python code snippets

Lesson Structure (60 Minutes)

1. Introduction and Ice Breaker (10 minutes)

  • Introduction (2 minutes): Briefly introduce the topic of arrays in Python, relating it to real-life examples like a list of students' names.
  • Ice Breaker Activity (8 minutes):
    • Objective: Get students comfortable and thinking logically.
    • Activity: “Human Array”: Each student will represent an element in an array. Write different types of fruit names on cards and give one card to each student.
    • Process: Arrange the students in a line. Then, ask questions like "What fruit is at index 3?" or "Swap the fruit at index 1 with index 4." This physical representation will help them visualise how arrays work.

2. Direct Instruction (15 minutes)

  • Explain Arrays (5 minutes):
    • Use the whiteboard to define arrays and show how they are structured in Python using simple syntax.
    • Example:
      fruits = ["Apple", "Banana", "Cherry", "Date"]
      
    • Highlight the zero-based indexing system.
  • Move to more complex examples (10 minutes):
    • Show how to modify elements in an array, access elements, and iterate through an array.
    • Examples:
      # Accessing elements
      print(fruits[1])  # Output: Banana
      
      # Modifying elements
      fruits[2] = "Blueberry" 
      
      # Iterating through an array
      for fruit in fruits:
          print(fruit)
      

3. Guided Practice (10 minutes)

  • Have students open their Python environment and type out the example codes given.
  • Walk around to assist students with any issues they encounter.
  • Ensure they can run the code and see the output.

4. Collaborative Activity (10 minutes)

  • Group Activity:
    • Divide the class into pairs.
    • Task:
      • Create an array that stores five of their favourite books.
      • Write code to:
        • Print the entire array.
        • Add a new book to the end of the array.
        • Remove the second book from the array.
        • Iterate through the array to print each book on a new line.
    • Example Solution:
      books = ["Book1", "Book2", "Book3", "Book4", "Book5"]
      print(books)
      
      # Adding new book
      books.append("Book6")
      
      # Removing the second book
      del books[1]
      
      # Print each book on new line
      for book in books:
          print(book)
      

5. Independent Practice (10 minutes)

  • Task:
    • Have each student create their own array with the names of 6 friends or family members.
    • Perform the following operations independently:
      • Access the third element.
      • Change the fifth element to "Zoe".
      • Iterate and print each name with a custom message like "Hello, [name]!"
  • Walk around to monitor progress and provide help as needed.

6. Review and Q&A (5 minutes)

  • Review Key Points (2 minutes):
    • What arrays are and their uses in Python.
    • Basic operations: accessing, modifying, and iterating through arrays.
  • Q&A Session (3 minutes):
    • Open the floor for any questions the students may have.
    • Provide clarifications and further examples if necessary.

7. Closure (10 minutes)

  • Wrap-Up Activity (5 minutes):
    • Ask students to share one thing they learnt or found challenging.
  • Homework Assignment (5 minutes):
    • Create an array of their choice (e.g., favourite movies, songs) at home.
    • Write Python code to:
      • Add two more elements.
      • Remove an element.
      • Print the updated array.

Assessment

  • Monitor students during independent and guided practice to gauge understanding.
  • Review homework in the next class to assess their grasp of arrays in Python.

By varying the activities and balancing direct instruction with hands-on practice, this lesson plan aims to engage students and meet New Zealand education standards in Technology.

Create Your Own AI Lesson Plan

Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with New Zealand Curriculum in minutes, not hours.

AI-powered lesson creation
Curriculum-aligned content
Ready in minutes

Created with Kuraplan AI

🌟 Trusted by 1000+ Schools

Join educators across New Zealand