def reject_fairness(experiment):
 num_heads = len([flip for flip in experiment if flip])
 return ((num_heads < 469) or (num_heads > 531))

def reject_fairness ( experiment ) : num_heads = len ( [ flip for flip in experiment if flip ] ) return ( ( num_heads < 469 ) or ( num_heads > 531 ) )
using the 5% significance levels .