A class build a Lego crocodile and use Raspberry Pi computers and the Scratch programming language to make it snap its jaws! Science presenter Minna Kane explains how you can plug your keyboard and monitor into a tiny Raspberry Pi computer and use open source coding software to program it. We see a primary school class build model crocodiles out of Lego, complete with a motorized mouth with a proximity sensor inside it. The sensor is the input and the motor is the output. The children use Scratch, a visual programming language, to create the program that will make the mouth snap shut when something is put inside it. We see their IF/THEN blocks and sensing values using a LESS THAN command that enable the sensor to detect how close the finger is and snap shut. Teacher notes: This could be used as an introduction to designing and writing programs that accomplish specific goals. Could also be used to show various forms of input and output.