Year 5 and 6 continued coding today. Using the power of repetition Esma and Olivia created a fabulous ‘spirograph’ design. We have also been exploring how to use functions. A function is a named section of a program that performs a specific task – a type of procedure or routine. Nina’s design uses a function to draw a square.
As well as using the built-in functions in Code Studio (such as ‘move’ or ‘turn’) we have started to define our own functions – writing blocks of code that, once we have defined them, we can use over and over again!
If you would like to see the code behind the design, click on the picture and take a peek.