Hero background

Introduction to Code

STEM • 10 • 10 students • Created with AI following Aligned with Common Core State Standards

Download now

Free PDF · we'll email you a copy

STEM
10
10 students
16 April 2025

Teaching Instructions

Python basics, lesson 1

Introduction to Code

Unit #1

Duration

10 minutes

Class Size

10 students

Subject

Python Basics

Standards Alignment

  • Common Core State Standards (CCSS)

    • CCSS.Math.Content.8.F.A.1: Understand that a function is a rule that assigns to each input exactly one output.
  • Next Generation Science Standards (NGSS)

    • MS-ETS1-1: Define the criteria and constraints of a design problem with sufficient precision to ensure a successful solution.

Learning Targets

  • Students will understand basic programming concepts including variables, data types, and simple arithmetic operations.
  • Students will create a simple program that demonstrates these concepts using Python.

Materials Needed

  • Laptops or tablets with Python installed (or access to an online Python interpreter)
  • Whiteboard and markers
  • Printed handouts with example code

Differentiated Instruction

  • For advanced students: Introduce the concept of functions for optional exploration.
  • For struggling students: Provide a one-on-one support option and additional resources with visual aids to reinforce understanding.

Lesson Outline

1. Introduction (2 minutes)

  • Objective: Briefly introduce Python as a programming language.
  • Method:
    • Engage students with a rhetorical question: "Have you ever wondered how your favorite apps were created?"
    • Explain that Python is a powerful yet beginner-friendly language used in various tech fields.

2. Basic Concepts (4 minutes)

  • Objective: Teach the basic concepts such as variables, data types, and arithmetic operations.
  • Method:
    • Variables: Introduce the concept of variables using a relatable analogy (e.g., boxes that store information).
      • Example: "Think of a variable like a box where you store your favorite number."
    • Data Types: Explain the difference between integers, floats, and strings.
      • Use a whiteboard to illustrate:
        • Integer: 5
        • Float: 5.0
        • String: "Hello"
    • Arithmetic Operations: Demonstrate simple operations (+, -, *, /).
      • Write example codes on the whiteboard:
        x = 5
        y = 3
        print(x + y)
        

3. Hands-On Activity (3 minutes)

  • Objective: Allow students to apply what they learned by writing a basic program.
  • Method:
    • Instruct each student to open Python and write a program that assigns values to two variables and prints their sum.
    • Provide support as students work, answering questions and encouraging peer collaboration.

4. Wrap-Up and Reflection (1 minute)

  • Objective: Solidify understanding and encourage feedback.
  • Method:
    • Ask students to share their outputs and discuss how changing variable values affects the results.
    • Encourage students to reflect: "What other operations would you like to explore in Python?"

5. Homework (optional)

  • Students can extend their learning by attempting to create a simple program that uses inputs to ask for their name and age, and then prints a message back to them.

Assessment

  • Observe students during the hands-on activity, providing feedback and noting who requires additional support.
  • Collect outputs from their programs to assess if they understand the concepts taught.

Inclusion Practices

  • Use clear, concise language and visual aids to support English Language Learners (ELL).
  • Arrange students in pairs or small groups to facilitate peer support and increase engagement.

This lesson introduces foundational programming skills in Python while engaging students through interactive and relatable activities, accommodating diverse learning needs, and aligning with US educational standards.

Create Your Own AI Lesson Plan

Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards 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 United States