def IQR(xs):
 cdf = Cdf(xs)
 return (cdf.Value(0.25), cdf.Value(0.75))

def IQR ( xs ) : cdf = Cdf ( xs ) return ( cdf . Value ( 0.25 ) , cdf . Value ( 0.75 ) )
computes the interquartile of a sequence .