Let's make it a bit more interesting! How many RECTANGLES are there on a chessboard? Remix this project with a script that calculates the answer correctly, and sets the variable "# of rectangles" to the answer. ℹ️ Note that most important thing is to CALCULATE it correctly. In other words, a project simply setting "# of rectangles" 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 as I did with Chessboard Challenge 1. Not the shortest solution, but an interesting one to showcase.