Python

In this lesson, students will get a first taste of programming by creating their own list of numbers.Topic: Lists and loops

    Objectives & Outcomes

    • Students will understand what a list is and how to create one using square brackets.
    • Students will be able to use loops to add numbers in a list.

    Materials

    • Python interpreter (optional)
    • Text editor for each student
    • Scratch paper for each student

    Warm-up

    • Ask students if they have ever played a game where they have to match numbers or pictures. (e.g. matching cards, memory match game)
    • Ask students if they can think of a way to make the game more challenging. (e.g. adding numbers to the cards, placing the cards in a different order)
    • Encourage students to come up with as many ways as they can think of to make the game more challenging.

    Direct Instruction

    • Introduce the concept of a list and explain how it can be used to store and manipulate data.
    • Show students how to create a list and add items to it using the "append()" function.
    • Demonstrate how to access and manipulate the items in a list using the "index()" and "pop()" functions.

    Guided Practice

    • Have students work in pairs to create a list containing the names of their classmates and use the "index()" function to access and display one of the names.
    • Lead a discussion about how the index of the list corresponds to the position of the item in the list.

    Independent Practice

    • Have students create a list containing the names of different types of animals and use the "index()" function to access and display one of the names.
    • Encourage students to use descriptive language to explain how the index of the list corresponds to the position of the item in the list.

    Closure

    • Have students share any new words or concepts they learned during the lesson.
    • Review the concepts of lists and indexes and have students provide examples of how to use them.

    Assessment

    • Observe students during the independent practice activity to assess their understanding of the concepts.
    • Collect and review their lists of words to assess their ability to use indexes appropriately.

    Create amazing lesson
    plans 10X faster with AI.

    Use AI to instantly generate high-quality lesson plans in seconds

    Try NOW!