I did the program for Mean-Variance-Standard Deviation calculation, but although i was sure it will pass with no errors, it fails for something being a ‘NoneType’. What is that difference that the test is doing? diff = abs(first- second) I understand that it’s between ‘something’ and the dictionary where the calculations are stored.
In Python, None usually means that a function failed to return a value. I would guess that you are failing to return something when you should be, but I don’t have time to look deeply at your code right now.
Hi ungureanudaniel, that’s the most elegant looking code that I have seen for this project that I have seen, trying to chug through it myself but i get speed bumps at every step of the way(learning process i guess). So trying to understand the process of functions etc so hardly an if/else statement to be seen, your code defines an output so you can append to it later, why are they asking to output to a dictionary rather than a list?