def print_stats(articles_by_lang): print "\t".join(["Wp_code", "Total_size", "Real_size", "real_total_ratio", "adjusted_size", "articles", "avg good page length"]) for lang in articles_by_lang: stats = get_stats( articles_by_lang[lang]) print "\t".join(str(x) for x in [lang, stats["total_size"], stats["real_size"], stats["real_total_ratio"], stats["adjusted_size"], stats["articles"], stats["avg good page length"]])
def print_stats(articles_by_lang): print "\t".join([ "Wp_code", "Total_size", "Real_size", "real_total_ratio", "adjusted_size", "articles", "avg good page length" ]) for lang in articles_by_lang: stats = get_stats(articles_by_lang[lang]) print "\t".join( str(x) for x in [ lang, stats["total_size"], stats["real_size"], stats["real_total_ratio"], stats["adjusted_size"], stats["articles"], stats["avg good page length"] ])
def print_stats(articles_by_lang): for lang in articles_by_lang: tot_size, real_size, real_total_ratio, adjusted_size = get_stats( articles_by_lang[lang]) print lang, tot_size, real_size, real_total_ratio, adjusted_size