Time for some holiday fun! How many squares are there on a chessboard? Groups of 2 x 2 squares and so on also count as squares. Remix this project with a script that calculates the answer correctly, and sets the variable "# of squares" to the answer. ℹ️ Note that most important thing is to CALCULATE it correctly. In other words, a project simply setting "# of squares" to the correct answer is disqualified. Bonus Challenges: ◾ Try to use as few blocks as possible ◾ Try to make the script as readable as possible ◾ Try to solve it in multiple ways Good luck!
I implemented this with a recursive function. Not the shortest solution, but an interesting one to showcase.