Iâve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the âpreformatted textâ tool in the editor (</>) to add backticks around text.
And since this is a working solution, I added [spoiler][/spoiler] tags.
Cool, weâre glad that you solved it. (Although I had to make a small change to get it to work for me.)
We donât usually post working solutions, especially for curriculum problems. Remember that there are other learners here, testing also. If you were in school, in the middle of a test, you wouldnât go up to the blackboard and start writing out the answers.