Hey I know it's been a while, and I don't know if I'm just being dumb or this is actually a problem, but I recieved this issue after making an average block:
Obviously, if you understand math, this should output 2. Any ideas?
Ah, a simple fix solved my problem. Just had to store the input's length and then use it at the end of the script.
… and you could even use it with the recursive version of LENGTH OF (data) from Fixing Unordered combinations custom block - #45 (while fixing the deliberate error within the base case, of course) Even though this would not be very inefficient.