01 // DO NOW

// RETRIEVAL PRACTICE

Answer the following 3 questions before we begin Python:

  1. What is an Algorithm?
  2. Which search algorithm ONLY works if the data is already in order?
  3. TRUE or FALSE: A linear search checks every item one by one.

Think carefully about each answer — then click to the next slide to check!

01 // DO NOW (ANSWERS)

// SELF-CORRECTION

  1. What is an Algorithm?
    A step-by-step set of instructions to solve a problem.
  2. Which search algorithm ONLY works if the data is already in order?
    Binary Search.
  3. TRUE or FALSE: A linear search checks every item one by one.
    TRUE.
// YEAR 7 : LESSON 1 : SELF-GUIDED

02 // THE TRANSLATOR

Intro to Python

Use arrow keys or buttons to navigate

03 // WHAT IS PYTHON?

Computers only understand 1s and 0s, but we speak human languages.

Python acts like a translator. You write instructions in Python, and Python translates them into binary so the computer knows what to do.

// WHY LEARN IT?

  • It is a real-world language used by Google, Netflix, and NASA.
  • It is easy to read compared to other languages.
  • It allows you to build games, apps, and AI.

04 // YOUR MISSION TODAY

// LEARNING GOAL

To write your very first sequence of instructions in Python using the print() function.

// KEYWORDS

Syntax: The strict spelling and grammar rules of code.

String: Human text wrapped in quote marks.

Function: A pre-built action the computer can do (like print).

// SUCCESS CRITERIA

  • Output text to the screen
  • Fix simple syntax errors
  • Create a 3-step sequence of code
#Syntax #Function #String #Sequence

05 // YOUR WORKSPACE (THE IDE)

An IDE (Integrated Development Environment) is the software where you write your code. It usually has three main parts:

main.py

1
print("Hello!")
2
<-- You type your instructions here
OPEN PYED

Console Output

Hello!
This is where the computer talks back -->

06 // THE print() FUNCTION

To make the computer talk to us, we use a command called print(). Let's break it down:

print("Hello World!")

// THE COMMAND

The word print tells Python what to do. Always spell it with a lowercase 'p'.

// THE BRACKETS

The brackets ( ) wrap around the message. Think of them like the computer's mouth.

// THE QUOTES

Quotes " " tell Python: "This is just human text! Don't try to run it as code!"

06.5 // PREDICT THE OUTPUT

Look at these two lines of code.
Will they do the same thing?

// BOX A

print(10 + 10)
20
Python does the math!

// BOX B

print("10 + 10")
10 + 10
Quotes mean "Just text"

// HOVER OVER THE BOXES TO REVEAL THE TRUTH //

07 // WHAT IS A SYNTAX ERROR?

// PREDICT: THE BUG HUNT

Computers aren't smart enough to guess what you meant. Look at the code on the right — how will Python react?

Tip: Look for red squiggly lines or error messages in the Console.

// SPOT THE MISTAKES

Each line below has one tiny error. Can you spot why they crash?

1. Print("Hello") Hover for answer
2. print("World) Hover for answer
3. print(Python is cool") Hover for answer

// LIVE DEMO ZONE

TEACHERS: Pause here. Cold-call a student to identify the exact bug before hovering over the issue to reveal the answer.

08 // HOW TO RUN YOUR CODE

// YOUR TURN: STEP BY STEP

  1. Open your IDE (Your teacher has provided the link/software).
  2. Click into the Editor panel (usually the main large text box).
  3. Type exactly this:
    print("I am a programmer!")
  4. Click the RUN button and watch the output in your console!

09 // QUICK CHALLENGES

Before starting your worksheet, try to build these quick challenges in your IDE.

B

BRONZE

  • Print your name on line 1.
  • Print your favorite food on line 2.
  • Try printing the result of 12 + 8 (without quote marks!). What happens?
S

SILVER

  • The computer only follows sequence.
  • Write a 3-step sequence printing the exact steps of "How to make a cup of tea" in the correct order. Use three separate print statements.
G

GOLD

  • ASCII Art! Try to draw a small shape (like an 'X', a box, or a smiley face) using print statements and spaces/special characters like * and #.

// LIVE DEMO ZONE

TEACHERS: Open the actual Python IDE on the main projector and physically execute the "Bronze" challenge live to demonstrate workflow.

10 // MISSION DASHBOARD

// WORKSHEET OBJECTIVES

  • PHASE 1: Definitions
  • PHASE 2: Running Code
  • PHASE 3: Syntax Sniper
  • PHASE 4: Independent Code
  • PHASE 5: Mastery Extension

MISSION_BRIEFING: Open your mission log (Worksheet) and execute the 5 phases in sequence. Access the Digital Labs when prompted in your logs. CRITICAL: Capture screenshots of all successful translations and terminal secured screens for your final report.

// SESSION ACTIVE : MINIMISE TALKING : MAXIMISE CODING //

11 // MISSION: DATA_INPUT

// MASTERY TASK (PHASE 5)

Real programmers don't just talk at the user. They listen. In Phase 5 of your worksheet, you will research the input() function to create a chatbot.

name = input("Who are you? ")

12 // KNOWLEDGE CHECK

// BEFORE YOU LEAVE, CAN YOU ANSWER THESE FOR YOURSELF?

1

What is the purpose of the parentheses ()?

It acts like the mouth, holding whatever you want the `print` command to say.

2

Why are quote marks "" important?

They tell the computer "this is just text" so it doesn't try to compute it as code.

3

What is a syntax error?

A spelling or grammar mistake in the code that stops the computer from understanding you.