Answer the following 3 questions before we begin Python:
Think carefully about each answer — then click to the next slide to check!
Use arrow keys or buttons to navigate
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.
To write your very first sequence of instructions in Python using the print() function.
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).
An IDE (Integrated Development Environment) is the software where you write your code. It usually has three main parts:
To make the computer talk to us, we use a command called print(). Let's break it down:
The word print tells Python what to do. Always spell it with a lowercase 'p'.
The brackets ( ) wrap around the message. Think of them like the computer's mouth.
Quotes " " tell Python: "This is just human text! Don't try to run it as code!"
Look at these two lines of code.
Will they do the same thing?
// BOX A
// BOX B
// HOVER OVER THE BOXES TO REVEAL THE TRUTH //
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?
// LIVE DEMO ZONE
TEACHERS: Pause here. Cold-call a student to identify the exact bug before hovering over the issue to reveal the answer.
Before starting your worksheet, try to build these quick challenges in your IDE.
// LIVE DEMO ZONE
TEACHERS: Open the actual Python IDE on the main projector and physically execute the "Bronze" challenge live to demonstrate workflow.
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 //
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.
// BEFORE YOU LEAVE, CAN YOU ANSWER THESE FOR YOURSELF?
What is the purpose of the parentheses ()?
It acts like the mouth, holding whatever you want the `print` command to say.
Why are quote marks "" important?
They tell the computer "this is just text" so it doesn't try to compute it as code.
What is a syntax error?
A spelling or grammar mistake in the code that stops the computer from understanding you.