This script will draw any shape with equal length sides. Green flag to start, simply input the length of each side and the number of sides you'd like.
Part of a Key Stage 3 Computing lesson to program shapes using iteration and variables. Note: the more sides your shape has the smaller the length of each side should be otherwise it'll disappear off the stage!