Tinkercad Codeblocks is a visual programming environment for computational making. It is part of Tinkercad, “a free online collection of software tools that help people all over the world think, create and make.” (Learn Codeblocks, Feb 2020).
According to the official Learn Codeblocks page, it's as easy as drag and drop blocks together to make shapes, re-order blocks to refine your design and run the code and watch your creation come to life.
The following will create a tower and then duplicate it. Width of the tower and N * N duplications are parameterized
Public Source code: https://www.tinkercad.com/codeblocks/4peL74rSVTV
- TinkCad Codeblocks Online programming environment (registration required)