File size: 359 Bytes
de31bcf
 
 
 
 
 
 
 
8562448
1
2
3
4
5
6
7
8
9
10
def get_aum_change(today_pct, yesterday_pct):
    return round(today_pct - yesterday_pct, 2)

def earnings_summary(results):
    summary = []
    for company, change in results.items():
        verdict = "beat estimates" if change > 0 else "missed estimates"
        summary.append(f"{company} {verdict} by {abs(change):.1f}%")
    return ", ".join(summary)