File size: 284 Bytes
339ddd8
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
"""Formatting helpers depending on mathops."""

from __future__ import annotations

from src.mathops import add_numbers


def format_sum(left: int, right: int) -> str:
    """Format an addition summary."""
    total = add_numbers(left, right)
    return f"{left} + {right} = {total}"