English | Français | 日本語 | Español
Free Python coding exercises for students on the T Level Technical Qualification in Digital Software Development (Level 3): 214 tasks, each with a plain-English brief and starter code, keyed to the topic numbers of Pearson’s specification.
Every folder is one task from our T Level Digital lessons. It holds a README that says what to do, and the starter files to work from. Use your own editor, and read the lesson first if you want the idea explained.
- Pick a task from the list below and open its folder.
- Read its README, then work in the starter files.
- Stuck? Open the lesson preview linked from the task, which explains the idea.
The hidden tests and the model answers are not here. They stay in the full curriculum, where a teacher can set a task, mark it and give feedback.
- 1.1: Decomposition: break it down (lesson preview): Shop functions
- 1.1: Pattern recognition (lesson preview): Use patterns
- 1.1: Abstraction: keep what matters (lesson preview): Fare calculator
- 1.2: One algorithm, three ways to write it (lesson preview): Steps to python
- 1.2: Trace it, find the error, fix it (lesson preview): Fix the errors
- 1.3: Top-down, bottom-up and modules (lesson preview): Paint room
- 1.3: Root cause analysis (lesson preview): Rca code
- 2.1: Standard data types (lesson preview): Bus fare
- 2.2: Variables and constants (lesson preview): Pizza shop
- 2.2: Changing one data type to another (lesson preview): Convert values
- 2.2: Scope: where a variable lives (lesson preview): Use scope
- 2.3: Lists and arrays (lesson preview): List functions
- 2.3: Dictionaries: look it up by name (lesson preview): Cafe menu
- 2.3: Build and debug with lists and dictionaries (lesson preview): Leaderboard, Fix structures
- 2.4: Arithmetic operators (lesson preview): Use operators
- 2.4: Comparing and combining with and, or, not (lesson preview): Logic tests
- 2.4: Read, write and fix code with operators (lesson preview): Fix operators, Make operators
- 2.5: Input from the keyboard, output to the screen (lesson preview): Talk to user
- 2.5: Cleaning and checking typed text (lesson preview): Text tools
- 2.5: Saving and loading with text files (lesson preview): Save and load
- 2.6: Sequence and selection (lesson preview): Fare chooser
- 2.6: Repeating with loops (lesson preview): Three loops
- 2.6: Read, write and fix choices and loops (lesson preview): Fix and write
- 2.7: Functions and procedures (lesson preview): Four subroutines
- 2.7: Using code that others wrote (lesson preview): Use libraries
- 2.7: Working with dates and times (lesson preview): Date functions
- 2.8: Validation: checking input (lesson preview): Build checks
- 2.8: The check digit (lesson preview): Barcode checks, Barcode ean13
- 2.9: Order, speed and memory (lesson preview): Fix the order
- 2.9: Names and code style (lesson preview): Change style
- 2.9: Judging a solution (lesson preview): Build b
- 2.10: Robust code (lesson preview): Make robust
- 2.10: Finding and fixing bugs (lesson preview): Four bugs
- 2.11: Linear and binary search (lesson preview): Two searches
- 2.11: Bubble sort and insertion sort (lesson preview): Two sorts
- 2.11: Merge sort (lesson preview): Build merge sort
- 2.11: Comparing algorithms (lesson preview): Count the work
- 2.12: Testing parts, then the whole (lesson preview): Test tools
- 2.12: More testing methods and automation (lesson preview): Test scripts
- 2.12: Test data and test plans (lesson preview): Build plan
- 3.2: Artificial intelligence and extended reality (lesson preview): Spam code
- 3.2: Storage, quantum computers and the Internet of Things (lesson preview): Edge code
- 4.1: The Computer Misuse Act (lesson preview): Access code
- 4.1: Data protection law and your data (lesson preview): Privacy code
- 4.1: The laws together, and law across borders (lesson preview): Checklist
- 4.2: Acceptable use policies and speaking up (lesson preview): Aup code
- 5.2: Digital systems for managers, stock and money (lesson preview): Money code
- 5.2: Meeting user needs and keeping quality high (lesson preview): Response code
- 5.2: Digital systems for sales, design, people and operations (lesson preview): Sales code
- 5.3: When a system leaves people out (lesson preview): Missing features
- 5.4: Is the project feasible? (lesson preview): Feasible code
- 5.4: Planning a change: the change board and goals (lesson preview): Cab code
- 5.4: Testing, rolling out and going back (lesson preview): Switch code
- 5.4: Outside factors that force change (lesson preview): Factor of
- 5.4: Impact, resources and telling people (lesson preview): Budget check
- 6.1: Data, information and knowledge (lesson preview): Points and advice
- 6.1: Where data comes from (lesson preview): Basket and source
- 6.1: How organisations use data (lesson preview): Top product, Failed logins
- 6.2: Changing data: manipulate, analyse, process (lesson preview): Trip sums
- 6.3: Numbers or words: kinds of data (lesson preview): Unhappy students
- 6.3: Counted, measured, grouped, and coding words (lesson preview): Codify comments
- 6.4: The seven common data types (lesson preview): Trip form
- 6.4: Structure, types and changing types (lesson preview): Who owes, Change types
- 6.5: ASCII and UTF-8 (lesson preview): Codes and bytes
- 6.5: Choosing and changing a data format (lesson preview): Csv and json
- 6.5: Text, CSV, JSON and XML (lesson preview): Read csv, Read json, Read xml
- 6.6: File-based and directory-based storage (lesson preview): Paths
- 6.6: Hierarchy storage and changing structure (lesson preview): Flat and tree
- 6.6: Metadata: data about data (lesson preview): Photo metadata
- 6.7: Big Data and the six Vs (lesson preview): Sensor stream
- 6.7: Keeping data good: quality checks (lesson preview): Quality checks
- 6.7: Maintaining data: time, skills, cost (lesson preview): Find duplicates
- 6.8: Choosing how data goes in (lesson preview): Choose entry
- 6.8: Data entry errors and how to stop them (lesson preview): Find errors
- 6.8: What a data system does (lesson preview): Most asked
- 6.8: Data wrangling in five steps (lesson preview): Five steps
- 6.9: Choosing the right chart (lesson preview): Chart rules
- 6.9: Ways to show data (lesson preview): Text bar chart
- 6.10: Choosing a data model (lesson preview): Storage count
- 6.10: Three ways to organise data (lesson preview): Walk the tree
- 6.11: Why we use an API (lesson preview): Read the answer
- 6.11: Choosing how to give access (lesson preview): Suggest methods
- 6.11: Permissions and access control (lesson preview): Roles and rules
- 6.12: Mining, reports and customer data (lesson preview): Best customers, Lapsed customers
- 6.12: Lakes, warehouses and marts (lesson preview): Sort the files
- 7.1: Types of computer (lesson preview): Name the type
- 7.1: Processor, memory and storage (lesson preview): Songs and space
- 7.2: Types of operating system (lesson preview): Choose the os, Run order
- 7.2: Utility software (lesson preview): Defragment
- 7.2: Developer tools and everyday apps (lesson preview): Fix the bugs
- 7.2: Everyday applications in detail (lesson preview): Best app
- 7.3: Wired and wireless connections (lesson preview): Choose connection
- 7.3: The OSI and TCP/IP models (lesson preview): Headers
- 7.3: Data packets (lesson preview): Checksum, Small checksum
- 7.3: Common network protocols (lesson preview): Dns and dhcp
- 7.3: Bandwidth and latency (lesson preview): Speed functions, Download time
- 7.4: Virtual machines and hypervisors (lesson preview): Can host
- 7.4: Virtual environments: good and bad (lesson preview): Hosts and saving
- 7.5: Public and private cloud (lesson preview): Servers and bill
- 7.5: IaaS, PaaS and SaaS (lesson preview): Who manages
- 7.6: Why resilient systems matter (lesson preview): Downtime sums
- 7.6: Updates, replacement and hardening (lesson preview): Audit
- 7.6: Backups, recovery sites and procedures (lesson preview): Site and 321, Follows 321
- 8.1: What a company must keep secret (lesson preview): Sort secrets
- 8.2: Malware, botnets and DDoS (lesson preview): Read log
- 8.2: Hackers and attacks on websites (lesson preview): Safe input
- 8.2: Tricks that fool people (lesson preview): Phish checker
- 8.2: Weak points in systems (lesson preview): Policy check
- 8.2: People, buildings and impact (lesson preview): Door log
- 8.2: Walk around the office: people and places (lesson preview): Doors
- 8.2: Attacks on the way: DNS, Wi-Fi and APIs (lesson preview): Locks
- 8.3: Encryption and hashing (lesson preview): Cipher and hash
- 8.3: Security tools, rules and hardening (lesson preview): Small guards
- 8.3: Backups, updates and air gaps (lesson preview): Backup maths, Check 321
- 8.3: VPNs, MFA and security testing (lesson preview): Testing checks
- 8.3: Firewalls, segregation and monitoring (lesson preview): Tiny firewall
- 8.4: The CIA triad (lesson preview): Triad checks
- 8.4: Identify, authenticate, authorise, account (lesson preview): Four steps
- OS 1.1: Design the product and check AI code (lesson preview): Fix ai code
- OS 1.1: Plan the project: time, money and language (lesson preview): Cost calculator
- OS 1.1: Plan the project: scope, value and KPIs (lesson preview): Value calculator
- OS 1.1: Write good user stories (lesson preview): Story checker
- OS 1.3: Agile and Scaled Agile (lesson preview): Sprint planner
- OS 1.3: Choose the right method: a decision game (lesson preview): Method chooser
- OS 1.4: Functional requirements and secure by design (lesson preview): Ticket total
- OS 1.4: Non-functional requirements, KPIs and acceptance (lesson preview): Kpi checker
- OS 1.5: AI, biometrics and big data (lesson preview): Spam learner
- OS 1.5: Smart devices, robots, cloud and 5G (lesson preview): Thermostat
- OS 1.6: Find and fill your own skills gaps (lesson preview): Skills checker
- OS 2.1: The law and your software (lesson preview): Age check
- OS 2.2: Find and rate the risks (lesson preview): Risk scorer
- OS 3.1: Can you trust that source? (lesson preview): Source rater
- OS 3.2: Design a survey and an interview (lesson preview): Survey results
- OS 4.1: Top-down design and data flow (lesson preview): Pizza code
- OS 4.1: Object-oriented design (lesson preview): Oop code
- OS 4.1: Test-driven and behaviour-driven design (lesson preview): Bus fare
- OS 4.1: Functional design (lesson preview): Functional code
- OS 4.3: Flowcharts and pseudocode (lesson preview): Pseudo to python
- OS 4.3: Data types, validation and structures (lesson preview): Validate code
- OS 4.3: Choosing graphics, audio and video (lesson preview): Page weight
- OS 4.3: Network integration points (lesson preview): Plan code
- OS 5.1: Code reviews (lesson preview): Fix review
- OS 5.2: IDEs and code collaboration (lesson preview): Debug four
- OS 6.1: Two languages, one product (lesson preview): Back end python
- OS 6.1: Dynamic pages, forms and cookies (lesson preview): Forms code
- OS 6.1: Files and data on a server (lesson preview): Files code, Db code
- OS 6.1: Access control and encryption (lesson preview): Security code
- OS 6.1: Using libraries and packages (lesson preview): Libs code
- OS 6.1: Platforms, devices and networks (lesson preview): Iac plan
- OS 6.1: Packaging and CI/CD pipelines (lesson preview): Pipeline runner
- OS 6.1: Coding conventions (lesson preview): Tidy code
- OS 6.1: Twelve factors, part one (lesson preview): Settings
- OS 6.1: Twelve factors, part two (lesson preview): Events
- OS 6.3: Connecting to data with an API (lesson preview): Api code
- OS 6.3: Connecting code to a database (lesson preview): Crud code
- OS 6.3: JDBC and ODBC (lesson preview): Driver manager
- OS 6.4: Containers and schedulers (lesson preview): Scheduler code
- OS 7.1: Functional testing: unit to system (lesson preview): Catch bugs
- OS 7.1: Non-functional testing (lesson preview): Read load test
- OS 7.1: Front-end testing (lesson preview): Page speed
- OS 7.1: Security testing (lesson preview): Tiny analyser
- OS 7.2: Acceptance, alpha and beta testing (lesson preview): Accept or not
- OS 7.2: Closed box, open box and AI testing (lesson preview): Every path, Test runner
- OS 7.3: Test data: normal, edge and wrong (lesson preview): Age checker, Choose data
- OS 7.3: The test plan and re-testing (lesson preview): Ticket machine
- OS 8.1: Maintenance: prevent and correct (lesson preview): Repair data
- OS 8.1: Keeping a product useful (lesson preview): Future proof
- OS 8.2: Planning a software change (lesson preview): Build schedule
- OS 8.2: Regression tests and releases (lesson preview): Release gate, Version numbers
- OS 8.3: Writing code a team can maintain (lesson preview): Split it, Change log
- OS 8.4: Communicating with your users (lesson preview): Read contract, Write notes
- OS 8.4: Helping users: from ticket to fix (lesson preview): Fix ticket
- ESP pre-task: English, maths and digital skills (lesson preview): Maths functions
- ESP pre-task: How the two Core exams work (lesson preview): Totals
- ESP pre-task: How your marks become a grade (lesson preview): Core grade
- ESP task 1: Plan your time and your risks (lesson preview): Plan checks
- ESP task 1: People, costs and your reasons (lesson preview): Cost checks
- ESP task 2: Find and fix defects in code (lesson preview): Fix booking
- ESP task 2: Make code safer (lesson preview): Safe code
- ESP tasks 2, 4a: Test your work and keep proof (lesson preview): Valid hour
- ESP task 3: Design the steps with a flowchart (lesson preview): Chart to code
- ESP task 3: Design so others can build it (lesson preview): Day view
- ESP task 4a: Build the solution in small steps (lesson preview): Build booking
- ESP task 4a: Tidy, safe and organised code (lesson preview): Tidy checks
- ESP task 4a: Screens and messages people understand (lesson preview): Messages
- ESP task 4a: Data from CSV files and charts (lesson preview): Csv answers
- ESP task 4a: Work well against the clock (lesson preview): Clock checks
- ESP task 4b: Explain your work to a client (lesson preview): Checker
- OSP task 1: Design the solution and use AI wisely (lesson preview): Review ai
- OSP task 1: Sources, risks and the law (lesson preview): Risk code
- OSP task 2: Build, save versions and review code (lesson preview): Waiting list
- OSP task 2: Build a portfolio of evidence (lesson preview): Evidence checks
- OSP task 2: Test, report and fix (lesson preview): Integration
- OSP task 3: Gather feedback from real users (lesson preview): Ratings
- OSP task 4: Turn feedback into decisions (lesson preview): Themes
The full T Level Digital curriculum has 263 lessons, with every task marked for you. A college account is free for the first year for up to 50 students. Read the free lesson previews first, then create a college account or see the price.
The MitsuruTech Learning Platform
This work is licensed under CC BY-NC-SA 4.0. You may share it and adapt it for learning and teaching, if you credit Mitsuru Technologies Ltd, do not use it commercially, and share anything you make from it under the same licence. The full text is in the LICENSE file.
These exercises are made by Mitsuru Technologies Ltd (registered in England & Wales, company number 16755264), who build the MitsuruTech Learning Platform for schools and colleges.
T Level is a registered trade mark of the Institute for Apprenticeships and Technical Education. This project is not affiliated with or endorsed by Pearson, the Department for Education or the Institute.