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!

Step media

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. In computing, written symbols and structured rules allow humans to communicate precise instructions to computers. As you explore the interactive Python Console Simulator below, focus on how to type text code statements without missing letters or quotes.

Interactive Simulator Sandbox
Python Curriculum:Step 1 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Typing First Commands

๐Ÿ”„Direct Simulator Transfer: Step 1 Tasks 1, 2 & 3

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why do you think computers cannot understand code if a quotation mark or bracket is missing?

๐ŸŸขSecure Level

Accurately types text code statements without missing letters or quotes.

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

Teacher notes: Facilitate the See-Think-Wonder routine for 2โ€“3 minutes. Encourage students to connect the prompt to Form (Written symbols and structured rules allow humans to communicate precise instructions to computers.).

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: TEXT.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: Students may verbally explain or point to the correct answer for "What replaces drag-and-drop blocks in text-based programming?" with a teacher or teaching assistant.

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!

Step media

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. In computing, computer languages rely on strict syntax structures to interpret human logic consistently. As you explore the interactive Python Console Simulator below, focus on how to write syntactically correct output statements using proper punctuation.

Interactive Simulator Sandbox
Python Curriculum:Step 2 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Fixing Syntax Errors

๐Ÿ”„Direct Simulator Transfer: Step 2 Tasks 4, 5 & 6

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

How is programming language syntax similar to grammar rules in written human languages?

๐ŸŸขSecure Level

Writes syntactically correct output statements using proper punctuation.

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

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Function (Computer languages rely on strict syntax structures to interpret human logic consistently.).

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: TEXT.02.B.1.2 โ€” 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: Students may verbally explain or point to the correct answer for "Which Python statement is written with correct syntax?" with a teacher or teaching assistant.

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!

Step media

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. In computing, sequential code execution creates predictable outcomes in automated story narratives and calculations. As you explore the interactive Python Console Simulator below, focus on how to predict exact output sequence of complex multi-line text programs.

Interactive Simulator Sandbox
Python Curriculum:Step 3 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Building a Dialogue Script

๐Ÿ”„Direct Simulator Transfer: Step 3 Tasks 7, 8 & 9

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why is line order so crucial when calculating math results or telling digital stories in text code?

๐ŸŸขSecure Level

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

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

Teacher notes: Facilitate the Predict & Verify routine for 2โ€“3 minutes. Encourage students to connect the prompt to Change (Sequential code execution creates predictable outcomes in automated story narratives and calculations.).

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: TEXT.03.B.1.3 โ€” 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: Students may verbally explain or point to the correct answer for "In what order does a text program execute lines of code?" with a teacher or teaching assistant.

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!

Step media

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. In computing, storing dynamic information in variables enables personalized and interactive computer programs. As you explore the interactive Python Console Simulator below, focus on how to format string concatenation and f-strings to display dynamic personalized outputs.

Interactive Simulator Sandbox
Python Curriculum:Step 4 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Building a Greeting Generator

๐Ÿ”„Direct Simulator Transfer: Step 4 Tasks 10, 11 & 12

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

What makes interactive programs with user inputs more engaging than static text displays?

๐ŸŸขSecure Level

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

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

Teacher notes: Facilitate the Connect-Extend-Challenge routine for 2โ€“3 minutes. Encourage students to connect the prompt to Connection (Storing dynamic information in variables enables personalized and interactive computer programs.).

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: TEXT.04.B.1.4 โ€” 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: Students may verbally explain or point to the correct answer for "Which Python line correctly stores user input into a variable named 'user_age'?" with a teacher or teaching assistant.

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!

Step media

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. In computing, conditional structures allow text programs to make dynamic decisions based on varying criteria. As you explore the interactive Python Console Simulator below, focus on how to write conditional text programs using dynamic comparison conditions.

Interactive Simulator Sandbox
Python Curriculum:Step 5 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Building a Passcode Checker

๐Ÿ”„Direct Simulator Transfer: Step 5 Tasks 13, 14 & 15

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why does Python rely on indentation to group code blocks instead of using visual container blocks?

๐ŸŸขSecure Level

Writes conditional text programs using dynamic comparison conditions.

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)

Teacher notes: Facilitate the 4 Cs (Connections, Concepts, Changes, Challenges) routine for 2โ€“3 minutes. Encourage students to connect the prompt to Perspective (Conditional structures allow text programs to make dynamic decisions based on varying criteria.).

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: TEXT.05.B.1.5 โ€” 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: Students may verbally explain or point to the correct answer for "What must follow an 'if' condition line in Python, and what must happen to the code line inside the branch?" with a teacher or teaching assistant.

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!

Step media

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. In computing, functions and loops allow text programmers to build modular, efficient, and scalable software solutions. As you explore the interactive Python Console Simulator below, focus on how to define custom functions with parameters to eliminate repeated code.

Interactive Simulator Sandbox
Python Curriculum:Step 6 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Building a Mini Text Game Engine

๐Ÿ”„Direct Simulator Transfer: Step 6 Tasks 16, 17 & 18

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ 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)

๐Ÿ“
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!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

How does organizing code into modular functions make large text programs easier to debug and maintain?

๐ŸŸขSecure Level

Defines custom functions with parameters to eliminate repeated code.

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

Teacher notes: Facilitate the Headline routine for 2โ€“3 minutes. Encourage students to connect the prompt to Reflection (Functions and loops allow text programmers to build modular, efficient, and scalable software solutions.).

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: TEXT.06.B.1.6 โ€” 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: Students may verbally explain or point to the correct answer for "Which keyword is used in Python to define a new custom reusable function?" with a teacher or teaching assistant.

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"!