Learn to Code

Learn to Code is a learning path on Breni for people who want to understand programming before they commit to a language. Across 8 courses it teaches the ideas every language shares: variables, decisions, loops, functions, data structures and debugging. By the end you can plan a small program, predict what a piece of code will do and track down a bug. The final course compares Python, JavaScript, Java and C++, and it only opens once the seven before it are done.

  • 8 courses
  • 15 learning objectives
  • Level: beginner
  • Language: English
  • Price: Subscription, free trial

What you will be able to do

  • Plan a small program in step-by-step pseudocode before writing any real code
  • Predict what a short program with conditions and loops will print
  • Split a task into functions with clear inputs and return values
  • Fix a bug by reading the error message and narrowing down the line that causes it
  • Choose between Python, JavaScript, Java and C++ for a specific project and explain why

Full curriculum

Part 1 · How programs think

1. What Code Is: How Computers Follow Instructions

Explain what a program is and how a computer follows instructions one step at a time. Units, in order: Instructions and the order they run in; Inputs, outputs and the steps in between; Source code, files and running a program; Reading an error message calmly; Pseudocode for planning a program.

  • — Order of Instructions
    Learn how computers run instructions in a strict line by line order.
    • What is an instruction?
    • Step by step order
    • Following a sequence
  • — Inputs and Outputs
    Discover how programs take data in, process it, and show results.
    • What is an input?
    • Steps in between
    • What is an output?
  • — Source Code and Files
    Explore code files and learn how a computer runs them.
    • What is source code?
    • Program files
    • Running a program
  • — Reading Error Messages
    Stay calm when code breaks and learn to read error text.
    • Why errors happen
    • Staying calm
    • Finding the clues
  • — Planning with Pseudocode
    Write plain English plans before you write actual computer code.
    • What is pseudocode?
    • Writing a plan
    • From plan to code

2. Values and Variables

Store, name and change data inside a program. Units, in order: Numbers, text and true or false values; Naming variables so code reads clearly; Changing a value while the program runs; Combining text and numbers in one message; Type mistakes and how to spot them.

3. Decisions and Loops

Make a program choose between paths and repeat work without copying code. Units, in order: If, else and comparison operators; Combining conditions with and, or and not; Loops that count a fixed number of times; Loops that run until something changes; Spotting and stopping an infinite loop.

Part 2 · Organising code

4. Functions

Break a program into small named pieces that can be reused and tested. Units, in order: Defining a function and calling it; Parameters and return values; Scope: where a variable can be seen; Turning a long task into several functions; Writing a function that is easy to test.

5. Lists and Key-Value Data

Group related data together and work through it item by item. Units, in order: Lists and positions in a list; Looping through every item in a list; Key and value pairs for named data; Picking the right structure for the data; Nested data such as a list of records.

6. Debugging and Problem Solving

Find and fix bugs with a method instead of guessing. Units, in order: Reading a stack trace from top to bottom; Printing values to follow what a program does; Shrinking a bug to the smallest failing case; Breaking a problem into steps before coding; Edge cases: empty, zero and very large inputs.

Part 3 · Code in the real world

7. How Websites and Apps Use Code

Describe where code runs in a website, a phone app and a server, and how the parts talk. Units, in order: Front end and back end; What an API request and response look like; Files, databases and saved data; How code gets from a laptop to real users.

8. Choosing Your First Language

Pick a programming language that fits your goal and set up the tools to start using it. Units, in order: Python, JavaScript, Java and C++ side by side; Matching a language to web, data, apps or games; Code editors, the terminal and version control; Planning a first small project.

Sample: What Code Is: How Computers Follow Instructions

The opening tier, (Order of Instructions). Learn how computers run instructions in a strict line by line order.

What is an instruction?

Define a simple command that a computer can understand and execute.

Step by step order

See why the sequence of instructions changes the final result.

Following a sequence

Trace a short list of simple commands line by line.

Questions about Learn to Code

Do I need to pick a programming language before I start learning to code?

No. Learn to Code on Breni teaches the ideas all languages share first, and the last course helps you choose Python, JavaScript, Java or C++ based on what you want to build.

Is this coding course good for complete beginners?

Yes. The first course assumes no programming experience and starts with what a program is and how a computer follows instructions.

How long does it take to learn coding?

It depends on how often you practise. Each Breni lesson takes about three minutes and covers one idea, so you can fit the 8 courses around a busy week and move at your own pace.

What happens if I get something wrong?

You get feedback straight away, and ideas you miss come back in later lessons so they stick.

Do I get a certificate for learning to code on Breni?

Yes. Finishing all 8 courses earns a Breni certificate of completion, which shows you completed the path. It is not a degree or a professional qualification.

Related learning paths

Start Learn to Code

Get Breni on Google Play and start Learn to Code Download on the App Store