statistics.median_low

The statistics.median_low function returns the median of the elements in data. For its calculation, the ordered elements are considered: If the number of elements is odd, the function returns the value that occupies the central position. If the number of elements is even, the lowest of the two closest to the center position is returned.

Submitted by admin on Sat, 03/27/2021 - 08:45

statistics.median

The statistics.median function returns the median of the elements in data. For its calculation, the ordered elements are considered: If the number of elements is odd, the median is the value that occupies the central position. If the number of elements is even, the median is the mean value of the two values closest to the center position.

Submitted by admin on Fri, 03/26/2021 - 08:34

statistics.mean

The statistics.mean function returns the arithmetic mean of the elements in data, that is, the sum of the elements divided by the number of them.

Submitted by admin on Mon, 03/22/2021 - 17:43

random.SystemRandom

random.SystemRandom is a class that uses the os.urandom() function to generate random numbers from sources provided by the operating system. This class does not rely on software state and the generated number sequences are not reproducible. This means that the seed() method has no effect and is ignored.

We can see the set of names associated with this class with the following code:

Submitted by admin on Sun, 03/21/2021 - 11:09