Skip to main content
Skip to main content

Visual to text coding
Index page


About this course

This lesson sequence provides a bridge between visual coding (eg. Scratch) and General Purpose Programming languages (eg. Python or JavaScript).

Each video builds a simple program in all three ways: Scratch, Python and JavaScript.

This resource is most suitable if:

  • you have never done General Purpose Programming,
  • you benefit from slow-paced, step-by-step video tutorials.


Setting Up

Use these two videos to:

  • set up your programming environment.
  • go through some of the common errors that people fall victim to!
Setting Up
1. Setting Up
Setting up video thumbnail
1a. Gotchas
Gotchas video thumbnail

The Basics

Use these three videos to:

  • learn how to store, concatenate and output data.
  • build a simple application to consolidate knowledge of these skills
The Basics
About concatenation:
Concatenation video thumbnail
About variables:
Variables video thumbnail
About input/output:
Weather application video thumbnail

Lesson 1: Temperature converter

Two/three 45-minute periods

  • Use pseudocode for code design.
  • Introduce variables.
  • Design and code a program to convert temperature units (°C to °F).
  • OPTIONAL: Challenge yourself to build other converters, including currency.
Lesson 1: Temperature converter

Videos in this lesson:

Celsius converter:
Celsius converter video thumbnail

Improving output:
Celsius converter concatenation video thumbnail
Currency converter:
Currency converter video thumbnail

Bitcoin tracker:
Bitcoin tracker video thumbnail
How much Netflix?
How much Netflix? video thumbnail

Go to lesson

Lesson 2: Calculator

Two/three 45-minute periods

  • Introduce branching (decisions).
  • Identify data types.
  • Design and code a text-based calculator.
  • OPTIONAL: Challenge yourself with an ice cream vending interface and a Maths quiz.
Lesson 2: Calculator

Videos in this lesson:

Making decisions:

Control flow video thumbnail
Calculator

Calculator video thumbnail
International Space Station position
International Space Station video thumbnail

Go to lesson

Lesson 3: Heads or Tails

Two/three 45-minute periods

  • Introduce random numbers.
  • Design and code a heads-or-tails game.
  • OPTIONAL: Challenge yourself with a dice roll simulator.
Lesson 3: Heads or Tails

Videos in this lesson:

Heads or tails (intro)
Heads or tails (overview) video thumbnail
Heads or tails (coding)
Heads or tails (scratch, python, javascript) video thumbnail
Dice roll simulator:
Dice roll challenge video thumbnail

Go to lesson

Lesson 4: Paper, scissors, rock

Two/three 45-minute periods

  • Introduce combining of logical operators and
    and or.
  • Design and code a game with complex win conditions.
  • OPTIONAL: Have a go at designing your own Rock-Paper-Scissors-Lizard-Spock program.
Lesson 1: Temperature converter

Videos in this lesson:

Scissors, Paper, Rock game (overview)
Scissors, Paper, Rock video thumbnail
Scissors, Paper, Rock game (coding)
Scissors, Paper, Rock video thumbnail

Go to lesson

Lesson 5: Password generator

Two/three 45-minute periods

  • Set up pseudocode for code design
  • Introduce Arrays and Lists
  • Design and code a random Password Generator
  • OPTIONAL: Create a random fantasy character, game show challenge and shopping list
Lesson 5: Password generator

Videos in this lesson:

About arrays
Arrays video thumbnail
Password generator (overview)
Password generator video thumbnail
Password generator (code)
Password generator video thumbnail

Go to lesson

Lesson 6: Magic 8 ball

Two/three 45-minute periods

  • Introduce the length property for arrays.
  • Design and code a Magic 8 Ball to advise you.
Lesson 5: Password generator

Videos in this lesson:

Length property

Lengths video thumbnail
Decision maker and magic 8 ball
Decision maker and magic 8 ball video thumbnail

Go to lesson

Lesson 7: Times tables

Two/three 45-minute periods

  • Introduce iteration (loops).
  • Design and code a times table generator for any number.
Lesson 5: Password generator

Videos in this lesson:

Loops
Loops video thumbnail
Times tables
Times tables video thumbnail

Go to lesson

Lesson 8: Guess the number

Two/three 45-minute periods

  • Learn more about variables and iteration (loops).
  • Design and code a higher/lower game, where the player must guess a secret number between 1 and 20.
Lesson 5: Password generator

Videos in this lesson:

Guess the number
'Guess the number' video thumbnail
Vowel replacer
Vowel replacer video thumbnail

Go to lesson