Throughout the course, we’ll be investigating a number of algorithms. We’ll look at how we can describe algorithms, compare them, and ultimately program them. In the next few steps we’re …
Although they may not look the same, in Python we can treat strings in a very similar way to lists. In Python terms, they are both “iterables”. This means that, …
In this step, we’re going to create a list of players and use it to split those players into two random teams. We’re going to demonstrate one way of solving …
Last week we looked at the role of functions in programming, and you learnt how to define and call your own functions with both parameters and return values. These are …
Programmers use functions to build reusable chunks of code and manage complexity. In this article, we will discuss what programmers mean by the term algorithm, and how algorithms relate to the …
You might have used and created simple functions that carry out one task in isolation. This type of function is often referred to as a procedure or subroutine. These functions …
What is a function? A function is simply a “chunk” of code that you can use over and over again, rather than writing it out multiple times. Functions enable programmers …
Throughout this course, as well as developing your technical ability to program, we’ll also be modelling good practices and habits that we hope you’ll pick up. One really important practice …
Before you begin your course, we would like to take this opportunity to introduce you to the team here at the Raspberry Pi Foundation. We are a charity that works …