File size: 358 Bytes
1f6c124
 
 
 
 
 
1
2
3
4
5
6
7
def format_conversion_result(date, from_currency, to_currency, rate, from_amount, to_amount, inverse_rate):
    return f"""
    The conversion rate on {date} from {from_currency} to {to_currency} was {rate:.5f}.
    So {from_amount:.1f} in {from_currency} corresponds to {to_amount:.2f} in {to_currency}.
    The inverse rate was {inverse_rate:.4f}.
    """