Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Tell us what’s happening:
Describe your issue in detail here.
hello all, I have been having problems with the unittest self.assertAlmostEqual, since they do not accept comparison operations between dictionaries when evaluating.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Link to the challenge:

assertAlmostEqual is able to compare dictionaries, but only in very specific case - when they are equal. Otherwise indeed it might have troubles with comparing dictionaries.

The issue appears like operation ‘-:’ is not possible…Is It possible other way for load code?

assertAlmostEqual is using subtraction to determine how almost equal are objects.

Every time I’ve seen this, it is a problem with the shape or format of the user output.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.