Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Conditionals: How computers take decisions

In the video, we introduced the general concept of conditionals. This is a powerful concept in programming, and virtually all programming languages offer a way to create conditionals. They are …

Writing comments

Rafael explains how to write comments in our code that will not have any effect to the computer. This is useful if you want to leave a message about your …

Week 2: Overview

Rafael provides a recap of what you have considered in the course so far, and what is coming up this week. Week 2 Learning Objectives Describe what if statements do …

Input and output in Python

These three short exercises will help you practice your Python programming skills on reading input from a user, declaring variables, and doing basic operations on numbers (addition, subtraction, multiplication etc). …

Define your own variables

In this step, there are two exercises to enable you to practice defining variables within a Python program. We have provided the solutions, so don’t worry if you get stuck! …

Finding out the precedence of logic operators

You may remember from mathematics that when you have a complicated mathematical expression, there are rules about how it should be evaluated. For example, in mathematics if you have the …

Logical operators

This step we will revisit some basic logical operators. The AND Operator Input (A) Input (B) AND Outrput False False False False True False True False False True True True The first …

What is a pseudocode?

In this video, we introduce the concept of a pseudocode, looking at the difference between an algorithm, pseudocode and a program.

What is an algorithm?

In this video Rafael describes an algorithm as a sequence of instructions or steps to solve a specific problem or a class of problems.