Text Coding

Text-Based Coding

1
2
3
4
5
6

Transitioning from visual block coding to typed programming syntax, strict language rules, and text-based program execution.

Level 1

Step 1: Code Typing

Recognise that text code consists of typed letters, numbers, and symbols requiring precise keyboard entry.

Learning objective

Students learn to recognize typed programming commands and type basic text instructions accurately.

Let's Go!

Learn

Text-based coding uses typed words and punctuation instead of drag-and-drop blocks. Computers require exact spelling and matching symbols to execute instructions.

Content

Unsupported content component

Text vs Block Interface

Try it yourself

Typing First Commands

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies typed text code as instructions for a computer.

Developing

Types simple programming commands following a visual guide.

Secure (Goal)

Accurately types text code statements without missing letters or quotes.

Mastery

Explains why exact typing is required for computers to process text code.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 1: Code Typing includes:

  • Core Deliverable: Typing First Commands
  • Target Quality: Accurately types text code statements without missing letters or quotes.
  • Excellence & Polish: Explains why exact typing is required for computers to process text code.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

What replaces drag-and-drop blocks in text-based programming?

Select the correct answer.

Answer correctly to unlock the next level.

Great job! Text-based coding relies on typed words, numbers, and symbols.Remember, text coding replaces visual blocks with precise typed syntax.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: See-Think-Wonder

Achievement pathway

  • Foundation: Identifies typed text code as instructions for a computer.
  • Developing: Types simple programming commands following a visual guide.
  • Secure: Accurately types text code statements without missing letters or quotes.
  • Mastering: Explains why exact typing is required for computers to process text code.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.01.B.1.1 โ€” Recognise that text code consists of typed letters, numbers, and symbols requiring precise keyboard entry.

PYP: Form ยท Written symbols and structured rules allow humans to communicate precise instructions to computers.

Learner profile: Inquirer

Competency tags

  • typing
  • text-coding
  • syntax-basics

Gate support

Accessibility alternative:

Teacher override: allow

Back to top

Locked level

Level 2: Step 2: Syntax Rules

Complete the previous learning check to unlock this next level.

Level 2

Step 2: Syntax Rules

Follow strict syntax rules including capitalization, parentheses, and quotes when typing code statements.

Learning objective

Students learn the core rules of text syntax including function names, parentheses, and string quotes.

Let's Go!

Learn

Syntax is the grammar of programming languages. In Python, function names are case-sensitive, arguments sit inside parentheses (), and text strings must be enclosed in quotation marks.

Content

Unsupported content component

Understanding Syntax

Try it yourself

Fixing Syntax Errors

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies parentheses and quotes in a line of text code.

Developing

Distinguishes between valid text commands and syntax errors.

Secure (Goal)

Writes syntactically correct output statements using proper punctuation.

Mastery

Teaches peers how to fix syntax errors like missing brackets or unclosed quotes.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 2: Syntax Rules includes:

  • Core Deliverable: Fixing Syntax Errors
  • Target Quality: Writes syntactically correct output statements using proper punctuation.
  • Excellence & Polish: Teaches peers how to fix syntax errors like missing brackets or unclosed quotes.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

Which Python statement is written with correct syntax?

Select the correct answer.

Answer correctly to unlock the next level.

Correct! print() must be lowercase with matching parentheses and quotes.Check lowercase function names, matching parentheses, and enclosed quotes.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Achievement pathway

  • Foundation: Identifies parentheses and quotes in a line of text code.
  • Developing: Distinguishes between valid text commands and syntax errors.
  • Secure: Writes syntactically correct output statements using proper punctuation.
  • Mastering: Teaches peers how to fix syntax errors like missing brackets or unclosed quotes.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.01.B.1.1 โ€” Follow strict syntax rules including capitalization, parentheses, and quotes when typing code statements.

PYP: Function ยท Computer languages rely on strict syntax structures to interpret human logic consistently.

Learner profile: Communicator

Competency tags

  • syntax-rules
  • python-basics
  • brackets-quotes

Gate support

Accessibility alternative:

Teacher override: allow

Back to top

Locked level

Level 3: Step 3: Sequential Scripts

Complete the previous learning check to unlock this next level.

Level 3

Step 3: Sequential Scripts

Write and execute multi-line text scripts that run instructions sequentially from top to bottom.

Learning objective

Students write multi-line text programs that execute sequence steps in precise order.

Let's Go!

Learn

Text programs execute line by line, starting at line 1 and moving downward. Changing the order of lines changes the sequence of output actions.

Content

Unsupported content component

Top-to-Bottom Execution

Try it yourself

Building a Dialogue Script

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Traces the order of lines in a 3-line text script.

Developing

Constructs a multi-line text script to display sequential story dialogue.

Secure (Goal)

Predicts exact output sequence of complex multi-line text programs.

Mastery

Reorders script lines to optimize output clarity and logical flow.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 3: Sequential Scripts includes:

  • Core Deliverable: Building a Dialogue Script
  • Target Quality: Predicts exact output sequence of complex multi-line text programs.
  • Excellence & Polish: Reorders script lines to optimize output clarity and logical flow.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

In what order does a text program execute lines of code?

Select the correct answer.

Answer correctly to unlock the next level.

Spot on! Code runs sequentially line by line from top to bottom.Remember that sequential text execution moves strictly line by line starting at the top.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Predict & Verify

Achievement pathway

  • Foundation: Traces the order of lines in a 3-line text script.
  • Developing: Constructs a multi-line text script to display sequential story dialogue.
  • Secure: Predicts exact output sequence of complex multi-line text programs.
  • Mastering: Reorders script lines to optimize output clarity and logical flow.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.02.B.1.1 โ€” Write and execute multi-line text scripts that run instructions sequentially from top to bottom.

PYP: Change ยท Sequential code execution creates predictable outcomes in automated story narratives and calculations.

Learner profile: Thinker

Competency tags

  • sequential-code
  • multi-line
  • script-execution

Gate support

Accessibility alternative:

Teacher override: allow

Back to top

Locked level

Level 4: Step 4: Variables & Input

Complete the previous learning check to unlock this next level.

Level 4

Step 4: Variables & Input

Store, manipulate, and format typed text variables and interactive user inputs.

Learning objective

Students learn to create text variables, collect user inputs with input(), and output formatted responses.

Let's Go!

Learn

Variables store values using an assignment operator (=), like name = 'Alex'. The input() function asks the user a question and saves their typed response into a variable for later use.

Content

Unsupported content component

Variables and input

Try it yourself

Building a Greeting Generator

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies variable assignment using the equals sign (=) in text code.

Developing

Captures user input using input() and stores it in a named variable.

Secure (Goal)

Formats string concatenation and f-strings to display dynamic personalized outputs.

Mastery

Designs an interactive text chatbot that prompts for user data and remembers choices.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 4: Variables & Input includes:

  • Core Deliverable: Building a Greeting Generator
  • Target Quality: Formats string concatenation and f-strings to display dynamic personalized outputs.
  • Excellence & Polish: Designs an interactive text chatbot that prompts for user data and remembers choices.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

Which Python line correctly stores user input into a variable named 'user_age'?

Select the correct answer.

Answer correctly to unlock the next level.

Awesome! Variable name goes on the left, assignment operator (=) in the middle, and input() on the right.Remember: variable_name = input('Prompt message').
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Connect-Extend-Challenge

Achievement pathway

  • Foundation: Identifies variable assignment using the equals sign (=) in text code.
  • Developing: Captures user input using input() and stores it in a named variable.
  • Secure: Formats string concatenation and f-strings to display dynamic personalized outputs.
  • Mastering: Designs an interactive text chatbot that prompts for user data and remembers choices.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.02.B.1.1 โ€” Store, manipulate, and format typed text variables and interactive user inputs.

PYP: Connection ยท Storing dynamic information in variables enables personalized and interactive computer programs.

Learner profile: Principled

Competency tags

  • variables
  • input-function
  • string-formatting

Gate support

Accessibility alternative:

Teacher override: allow

Back to top

Locked level

Level 5: Step 5: Conditionals & Indent

Complete the previous learning check to unlock this next level.

Level 5

Step 5: Conditionals & Indent

Write structured if/else conditional statements using comparative operators and strict block indentation.

Learning objective

Students write text-based if/elif/else statements using comparison operators (==, >, <) and 4-space indentation.

Let's Go!

Learn

Text-based decisions use if, elif, and else keywords followed by a colon (:). Code inside each decision branch MUST be indented (typically 4 spaces) to show it belongs to that branch.

Content

Unsupported content component

If Statements & Indentation

Try it yourself

Building a Passcode Checker

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identifies the if and else keywords in a Python script.

Developing

Applies correct indentation to code blocks inside if/else branches.

Secure (Goal)

Writes conditional text programs using dynamic comparison conditions.

Mastery

Constructs multi-branch decision trees using if, elif, and else clauses.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 5: Conditionals & Indent includes:

  • Core Deliverable: Building a Passcode Checker
  • Target Quality: Writes conditional text programs using dynamic comparison conditions.
  • Excellence & Polish: Constructs multi-branch decision trees using if, elif, and else clauses.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

What must follow an 'if' condition line in Python, and what must happen to the code line inside the branch?

Select the correct answer.

Answer correctly to unlock the next level.

Spot on! Python uses colons (:) and block indentation to define conditional code branches.Remember: if condition: followed by indented lines.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: 4 Cs (Connections, Concepts, Changes, Challenges)

Achievement pathway

  • Foundation: Identifies the if and else keywords in a Python script.
  • Developing: Applies correct indentation to code blocks inside if/else branches.
  • Secure: Writes conditional text programs using dynamic comparison conditions.
  • Mastering: Constructs multi-branch decision trees using if, elif, and else clauses.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.03.B.1.1 โ€” Write structured if/else conditional statements using comparative operators and strict block indentation.

PYP: Perspective ยท Conditional structures allow text programs to make dynamic decisions based on varying criteria.

Learner profile: Knowledgeable

Competency tags

  • if-else
  • indentation
  • comparative-operators

Gate support

Accessibility alternative:

Teacher override: allow

Back to top

Locked level

Level 6: Step 6: Loops & Functions

Complete the previous learning check to unlock this next level.

Level 6

Step 6: Loops & Functions

Define reusable text functions with def and construct count-controlled for loops and condition-controlled while loops.

Learning objective

Students define custom functions with def and implement text for/while loops to solve complex programming tasks.

Let's Go!

Learn

Use `for i in range(n):` to repeat code `n` times, or `while condition:` for continuous execution. Use `def function_name():` to wrap reusable code blocks into custom named functions.

Content

Unsupported content component

Loops & Reusable Functions

Try it yourself

Building a Mini Text Game Engine

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Recognizes for, while, and def keywords in a Python script.

Developing

Constructs a for loop in Python to repeat an action a fixed number of times.

Secure (Goal)

Defines custom functions with parameters to eliminate repeated code.

Mastery

Builds a complete text-based adventure game utilizing functions, loops, variables, and conditionals.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

Exemplar Standard

A top-tier student project for Step 6: Loops & Functions includes:

  • Core Deliverable: Building a Mini Text Game Engine
  • Target Quality: Defines custom functions with parameters to eliminate repeated code.
  • Excellence & Polish: Builds a complete text-based adventure game utilizing functions, loops, variables, and conditionals.
๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

โญSelf-Assessment: How confident do you feel with this skill?

Reflect

Plenary

Unsupported plenary component

Reflection Prompt

Learning check

Learning Check

Which keyword is used in Python to define a new custom reusable function?

Select the correct answer.

Answer correctly to complete this strand.

Brilliant! 'def' defines custom reusable functions in Python.In Python, custom functions are created using the 'def' keyword.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Headline

Achievement pathway

  • Foundation: Recognizes for, while, and def keywords in a Python script.
  • Developing: Constructs a for loop in Python to repeat an action a fixed number of times.
  • Secure: Defines custom functions with parameters to eliminate repeated code.
  • Mastering: Builds a complete text-based adventure game utilizing functions, loops, variables, and conditionals.

Curriculum links

Curriculum strand: coding/text-coding

Outcome: AP.03.B.1.1 โ€” Define reusable text functions with def and construct count-controlled for loops and condition-controlled while loops.

PYP: Reflection ยท Functions and loops allow text programmers to build modular, efficient, and scalable software solutions.

Learner profile: Reflective

Competency tags

  • for-loops
  • while-loops
  • def-functions
  • modular-text-code

Gate support

Accessibility alternative:

Teacher override: allow

๐ŸŽ’ Students Home โ†’

Install App for Classroom

One-click fullscreen learning for Chromebooks, iPads & PCs

๐Ÿ–ฅ๏ธ
Distraction-FreeFullscreen window without browser tabs or search clutter.
โšก
1-Tap LaunchPin directly to the Chromebook shelf, iPad dock, or Windows taskbar.
๐Ÿ“ถ
Classroom SpeedInstant cached loads for lessons and simulators even on school Wi-Fi.
๐Ÿ”’
Safe & Ad-Free100% free, private, and no app store logins or passwords needed.
  1. 1
    Click the Install button

    In your browser, look at the right end of the top web address bar for the ๐Ÿ’ป Install or โค“ icon.

  2. 2
    Confirm "Install"

    A popup will ask if you want to install "Ed Tech Hub". Click Install.

  3. 3
    Pin to your Shelf

    Right-click (or two-finger tap) the app icon in your Chromebook bottom shelf and select "Pin"!