Resources by Raspberry Pi Foundation

Back to all publishers

Displaying 21 - 30 of 37

Strings and Arithmetic Operations

This guide, for more advanced users of LINUX, shows how BASH scripts can be used for operations on strings and for arithmetical operations. The syntax for BASH is clearly explained.

Surfaces in Pygame

This activity follows on from a previous graphics surface project. Previously a single graphics surface was created - this Python program uses multiple surfaces to build more complex graphics and to create effective animations.

Students are encouraged to experiment with the behaviour of the program, and to...

The MagPi essentials: hacking and making in Minecraft

This resource uses the version of Minecraft that comes pre-installed within the Raspbian operating system for the Raspberry Pi. As such a Raspberry Pi is required to use this e-book. Minecraft: Pi Edition comes with a powerful Application Programming Interface (API), which allows students to hack and make entire...

The MagPi essentials: learn to code with Scratch

In this resource , students can get started and are guided step-by-step through the process of creating all sorts of projects using Scratch including games, animations, quizzes, electronics circuits, and more. Although originally written for the Raspberry Pi all the projects can be ported to other platforms (except...

The Python Pit

This introductory article shows working examples of basic Python programs. It includes:

• Printing to the screen
• Comments
• Simple arithmetic
• Using variables
• Strings and string arrays
• For and While loops
• Random numbers from the Random library
• Creating a...

The Scratch Patch

This introduction to programming in Scratch uses a trivial example to demonstrate simple audio and animation. It is written for Scratch 1.4 but can be easily adapted for later versions. ...

The Scratch patch - bubble sort algorithm

This short practical guide shows how to implement a bubble sort algorithm in Scratch. The procedure is easy to follow, and can be used in conjunction with theory or unplugged activities to aid...

The Scratch patch - crash, bang, wallop! Create a simple racing car game

This simple game is an engaging way to extend learning in Scratch. It uses fairly simple scripts running in parallel to detect collisions and move sprites, which have been designed in the Scratch environment. It could be used a basis for other similar ‘scrolling’ games. 

The Scratch patch - error handling

This activity is an introduction to writing programs that can handle errors. It also helps students to understand number bases, by guiding them through the writing of a ‘base converter’ program.

The Scratch patch - king of the heap (sort)

Suitable for students throughout secondary computing, including those studying at an advanced level, this exercise introduces the Heap Sort and explores why it is more efficient than the Bubble Sort in another Scratch Patch article. Students learn about tree data structures, including the correct terminology for...

Pages

Find a publisher