Recent Posts
Archives

PostHeaderIcon [DevoxxFR2014] Bias indicators

birthday_count = sum(1 for n in nums if 1 <= n <= 31)
birthday_ratio = birthday_count / 5.0
even_count = sum(1 for n in nums if n % 2 == 0)
low_half = sum(1 for n in nums if n <= 25)
high_half = 5 - low_half

Leave a Reply