Lesson 3
Ciphers and text-based programming
Introduction
Students are introduced to text-based programming by exploring JavaScript code before creating a Caesar cipher in Python.
Learning objectives
- To develop practical understanding of text-based programming
- To understand and use selection, variables and functions
- To analyse JavaScript code
- To program a Caesar cipher with Python (if you have micro:bits)
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- HEX files
- full caesar cipher
- simple caesar
Other resources:
Student work from previous lesson
Quick links

Lessons created in partnership with Nominet
Lesson plan
Introduction: Recapping algorithms (5 minutes)
Introducing text programming (10 minutes)
JavaScript Caesar cipher (10 minutes)
Python Caesar ciphers (30 minutes - with micro:bits)
Python Caesar ciphers (30 minutes - without micro:bits)
Review and wrap up (10 minutes)
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.