def MakeCdfFromPmf(pmf, label=None):
 if (label is None):
  label = pmf.label
 return Cdf(pmf, label=label)

def MakeCdfFromPmf ( pmf , label = None ) : if ( label is None ) : label = pmf . label return Cdf ( pmf , label = label )
makes a cdf from a pmf object .