change the number for the shapes variable and sides variable then click the green flag
I found an usborne scratch book and made this from it