Parsons problem from Craig'n'Dave

PIN

Drag the code statements putting them into the correct order in the solution area. Select Get feedback when you have finished. If the solution area turns green, it's correct.
Remember to use correct indenting after def, if, match, case, while and for statements.