News for hackers. Stuff that matters.
Re:Common mistakes made by beginner Python programmers by wodenokoto on Monday July 01, 2019 @12:33PM (#20327025)
I get my averages from

    sum(list_of_bools) / len(list_of_bools)
and

    np_array_of_bools.mean()
There is probably a more correct way, but I enjoy it.

There are no comments on this comment yet.